---
schema_version: "1"
id: 881b7927fa6729e0b0e43b6836342da6581eda81cf6e17102418cace22e0c722
title: Database Save Event Type
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_eventlogfile_databasesaveevent.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_eventlogfile_databasesaveevent.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: f308c1842c8441af59352f66648da8b1295cfb2c7e2176ba652fbd0cdc9376a4
description: Database Save events track when records are created, updated, or deleted. This object is available in API version 63.0 and later.
---
# Database Save Event Type

Database Save events track when records are created, updated, or deleted. This object is available in API version 63.0 and later.

For details about event monitoring, see the [Trailhead Event Monitoring module](https://trailhead.salesforce.com/en/modules/event_monitoring/units/event_monitoring_intro "HTML (New Window)") or [REST API Developer’s Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_rest.meta/api_rest/using_resources_event_log_files.htm "HTML (New Window)").

## Fields

| Field | Details |
| --- | --- |
| DML\_TYPE | 
Type

String

Description

The type of DML statement.



 |
| EVENT\_TYPE | 

Type

Id

Description

The type of event.



 |
| FIRST\_ENTITY\_ID | 

Type

String

Description

The first ID that is logged when an update occurs. If a single record is updated, the ID of that row is logged. If multiple records are updated, only one ID is logged.



 |
| KEY\_PREFIX | 

Type

String

Description

The key prefix of the entity type that was saved.



 |
| LOGIN\_KEY | 

Type

String

Description

The string that ties together all events in a given user’s login session. 



 |
| NUM\_ROWS | 

Type

String

Description

The number of entities that were saved.



 |
| ORGANIZATION\_ID | 

Type

Id

Description

The 15-character ID of the organization.



 |
| REQUEST\_ID | 

Type

String

Description

Globally unique id for a given request.



 |
| SAMPLE\_FACTOR | 

Type

Number

Description

The ratio of saved entities that were logged. A value of 1 means every entity saved was logged. A value of 100 means that 1 out of 100 entities saved was logged.



 |
| SESSION\_KEY | 

Type

String

Description

The user’s unique session ID. You can use this value to identify all user events within a session. When a user logs out and logs in again, a new session is started.

Example

d7DEq/ANa7nNZZVD



 |
| TIMESTAMP | 

Type

String

Description

The Timestamp at which the log event was generated.



 |
| TIMESTAMP\_DERIVED | 

Type

DateTime

Description

The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ).

Example

2015-07-27T11:32:59.555Z



 |
| USER\_ID | 

Type

Id

Description

The ID of the user who’s using Salesforce services through the UI or the API.

Example

005XXXXXXXXXXXX



 |