Apex Trigger Event Type

Apex Trigger events contain details about triggers that fire in an organization.

For details about event monitoring, see the Trailhead Event Monitoring module or REST API Developer’s Guide.

  • Type: String
  • Description: The ID of the bot.
  • Type: String
  • Description: The bot session ID.
  • Type: String
  • 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”.
  • Example: 96.43.144.26
  • Type: Number
  • Description: The CPU time in milliseconds is used to complete the request. This field indicates the amount of activity taking place in the app server layer.
  • Type: Number
  • Description: Time (in milliseconds) spent waiting for database processing in aggregate for all operations in the request. Compare this field to CPU_TIME to determine whether performance issues are occurring in the database layer or in your own code.
  • Type: String
  • Description: The name of the object affected by the trigger.
  • Type: String
  • Description: The type of event. The value is always ApexTrigger.
  • Type: Number
  • Description: The end-to-end Apex execution time (in milliseconds).
  • Type: String
  • 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.
  • Example: GeJCsym5eyvtEK2I
  • Type: ID
  • Description: The 15-character ID of the organization.
  • Example: 00D000000000123
  • Type: String
  • Description: The ID of the agent planner.
  • Type: String
  • 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 REQUEST_ID.
  • Example: 3nWgxWbDKWWDIk0FKfF5DV
  • Type: String

  • Description: The status of the request for a page view or user interface action. This field can have a blank value.

  • Possible values:

    • 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.
  • Type: Number
  • Description: This field is always null. To view the end-to-end Apex execution time (in milliseconds), refer to the EXEC_TIME field.
  • 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
  • Type: String
  • Description: The access time of Salesforce services in GMT.
  • Example: 20130715233322.670
  • Type: DateTime
  • Description: The access time of Salesforce services in ISO8601-compatible format (YYYY-MM-DDTHH:MM:SS.sssZ). The timezone is GMT.
  • Example: 2015-07-27T11:32:59.555Z
  • Type: String
  • Description: The 15-character ID of the trigger that was fired.
  • Type: String

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

  • Examples:

    • examplePackage.managedExampleTrigger - Managed trigger from the examplePackage namespace
    • unmanagedExampleTrigger - Unmanaged trigger
  • Type: String

  • Description: The type of this trigger.

  • Possible values:

    • AfterInsert
    • AfterUpdate
    • BeforeInsert
    • BeforeUpdate
  • Type: String
  • Description: The URI of the page that’s receiving the request.
  • Example: /home/home.jsp
  • Type: ID
  • Description: The 18-character case-insensitive ID of the URI of the page that’s receiving the request.
  • Type: ID
  • Description: The 15-character ID of the user who is using Salesforce services through the UI or the API.
  • Example: 00530000009M943
  • Type: ID
  • Description: The 18-character case-insensitive ID of the user who is using Salesforce services through the UI or the API.
  • Example: 00590000000I1SNIA0
  • Type: String

  • Description: The category of user license.

  • Possible values:

    • 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.