---
schema_version: "1"
id: 2d600a43c84c574b0f510cf8e674ce2fd603526fa7cfdd3a9f2745045d611f4d
title: ApexTriggerEventLog
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_apextriggereventlog.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_apextriggereventlog.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fc34b54d3fbd0ec7540956c73413d9931483fe56d441a91eed071a608d9640a5
description: Apex Trigger event logs contain details about triggers that fire in an organization. This object is available in API version 55.0 and later.
---
# ApexTriggerEventLog

Apex Trigger event logs contain details about triggers that fire in an organization. This object is available in API version 55.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 |
| --- | --- |
| BotIdentifier | 
Type

string

Properties

Filter, Group, Nillable, Sort

Description

The ID of the bot.



 |
| BotSessionIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The bot session ID.



 |
| ClientIp | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The IP address of the client that is using Salesforce services. A Salesforce internal IP (such as a login from AppExchange) is shown as “Salesforce.com IP”. For example: 96.43.144.26.



 |
| CpuTime | 

Type

double

Properties

Filter, Nillable, Sort

Description

The CPU time in milliseconds used to complete the request. This field indicates the amount of activity taking place in the app server layer.



 |
| DatabaseTotalTime | 

Type

double

Properties

Filter, Nillable, Sort

Description

Time (in milliseconds) spent waiting for database processing in aggregate for all operations in the request. Compare this field to CpuTime to determine whether performance issues are occurring in the database layer or in your own code.



 |
| ExecutionTime | 

Type

double

Properties

Filter, Nillable, Sort

Description

The end-to-end Apex execution time (in milliseconds).



 |
| LoginKey | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

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



 |
| ObjectName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The name of the object affected by the trigger.



 |
| PlannerIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The ID of the agent planner.



 |
| RequestIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

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



 |
| RequestStatus | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The status of the request for a page view or user interface action.

For example:

- S—Success. Salesforce handled the request successfully. If an Apex controller throws an exception, this status is also returned.
- F—Failure. Typically 4xx or 5xx HTTP codes, such as no permission to view page, page took too long to render, page is read-only.
- U—Undefined
- A—Authorization Error
- R—Redirect. Typically a 3xx HTTP code, possibly initiated by an Apex controller in a Visualforce page.
- N—Not Found. 404 error.

This field can have a blank value.



 |
| RunTime | 

Type

double

Properties

Filter, Nillable, Sort

Description

The amount of time that the request took in milliseconds.

Requests with a value over five seconds are considered long-running requests for the purposes of the Concurrent Long-Running Apex Limit.

HTTP callout processing time isn't included when calculating the 5-second limit. We pause the timer for the callout and resume it when the callout completes.



 |
| 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. For example: d7DEq/ANa7nNZZVD.



 |
| Timestamp | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The access time of Salesforce services in GMT. For example, 2020-01-20T19:12:26.965Z. Milliseconds are the most granular setting.



 |
| TriggerIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The 15-character ID of the trigger that was fired.



 |
| TriggerName | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

For triggers coming from managed packages, TriggerName includes a namespace prefix separated with a . character. If no namespace prefix is present, the trigger is from an unmanaged trigger. For example:

- examplePackage.managedExampleTrigger—Managed trigger from the examplePackage namespace
- unmanagedExampleTrigger—Unmanaged trigger





 |
| TriggerType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The type of this trigger.

Possible values are:

- AfterInsert
- AfterUpdate
- BeforeInsert
- BeforeUpdate





 |
| Uri | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The URI of the page that’s receiving the request. For example: /home/home.jsp.



 |
| UserIdentifier | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The 15-character ID of the user who is using Salesforce services through the UI or the API. For example: 00530000009M943.



 |
| UserType | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The category of user license.

Possible values are:

- CsnOnly—Users whose access to the application is limited to Chatter. This user type includes Chatter Free and Chatter moderator users.
- CspLitePortal—CSP Lite Portal license. Users whose access is limited because they’re organization customers and access the application through a customer portal or an Experience Cloud site.
- CustomerSuccess—Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal.
- Guest—Users whose access is limited so that your customers can view and interact with your site without logging in.
- PowerCustomerSuccess—Power Customer Success license. Users whose access is limited because they’re organization customers and access the application through a customer portal. Users with this license type can view and edit data they directly own or data owned by or shared with users below them in the customer portal role hierarchy.
- PowerPartner—Power Partner license. Users whose access is limited because they’re partners and typically access the application through a partner portal or site.
- SelfService—Users whose access is limited because they’re organization customers and access the application through a self-service portal.
- Standard—Standard user license. This user type also includes Salesforce Platform and Salesforce Platform One user licenses, and admins for this org.





 |