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

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

![Note](https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/images/icon_note.png)

#### Note

This object stores event data that's queryable from platform APIs. For event data stored in event log files, see [EventLogFile](https://developer.salesforce.com/docs/atlas.en-us.264.0.object_reference.meta/object_reference/sforce_api_objects_eventlogfile.htm).

## Supported Calls

describeSObjects(), query()

## Special Access Rules

To access this object, you must have the View Event Log Object Data user permission.

## Fields

| Field | Details |
| --- | --- |
| DmlType | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The type of DML operation.



 |
| FirstObjectIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

Only the first object ID is logged upon an update. During record updates, the ID of that specific row is logged. When multiple rows are updated, only a single ID is logged.



 |
| KeyPrefix | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The key prefix of the entity type that was saved



 |
| LoginKey | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The string that ties together all events in a given user’s login session. The session starts with a login event and ends with either a logout event or the user session expiring. For example, lUqjLPQTWRdvRG4.



 |
| RequestIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The unique ID of a single transaction. A transaction can contain one or more events. Each event in a given transaction has the same RequestIdentifier.



 |
| RowCount | 

Type

int

Properties

Filter, Group, Nillable, Sort

Description

Total number of records in the result set.



 |
| SampleFactor | 

Type

double

Properties

Filter, Nillable, Sort

Description

Rate at which entities are logged. If the sample factor is 1 that means every entity saved was logged. If it is 100 that means that 1/100 logs.



 |
| SessionKey | 

Type

string

Properties

Filter, Group, Nillable, Sort

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.



 |
| Timestamp | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The access time of Salesforce services in GMT. For example, 2020-01-20T19:12:26.965Z.



 |
| UserIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

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



 |