ApexTrigger
Contains metadata for Apex triggers, which automate processes by executing logic when records change.
Columns
| Name | Type | ReadOnly | References | Description |
| Id [KEY] | String | True |
Unique identifier for the Apex trigger. | |
| NamespacePrefix | String | True |
Namespace prefix associated with the trigger, typically used in managed packages. | |
| Name | String | False |
Name assigned to the Apex trigger. | |
| TableEnumOrId | String | False |
Name or ID of the object that the trigger is associated with. | |
| UsageBeforeInsert | Bool | False |
Indicates whether the trigger executes before insert operations. | |
| UsageAfterInsert | Bool | False |
Indicates whether the trigger executes after insert operations. | |
| UsageBeforeUpdate | Bool | False |
Indicates whether the trigger executes before update operations. | |
| UsageAfterUpdate | Bool | False |
Indicates whether the trigger executes after update operations. | |
| UsageBeforeDelete | Bool | False |
Indicates whether the trigger executes before delete operations. | |
| UsageAfterDelete | Bool | False |
Indicates whether the trigger executes after delete operations. | |
| UsageIsBulk | Bool | False |
Indicates whether the trigger is designed to handle bulk data operations. | |
| UsageAfterUndelete | Bool | False |
Indicates whether the trigger executes after a record is undeleted. | |
| ApiVersion | Double | False |
The Salesforce API version the trigger was developed for. | |
| Status | String | False |
Indicates the current status of the trigger, such as Active or Inactive. | |
| IsValid | Bool | False |
Indicates whether the trigger's syntax is valid and compiled successfully. | |
| BodyCrc | Double | False |
Checksum value for the body of the trigger, used for change detection. | |
| Body | String | False |
Apex code that defines the logic of the trigger. | |
| LengthWithoutComments | Int | False |
Character length of the trigger code excluding comments. | |
| CreatedDate | Datetime | True |
Timestamp indicating when the trigger was created. | |
| CreatedById | String | True |
User.Id |
ID of the user who created the trigger. |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified the trigger. |
| SOQL | String | False |
Specifies the SOQL query to execute against the Salesforce servers. If this pseudo column is set from the WHERE clause it will take precedence over the original query. | |
| ExternalIdColumn | String | False |
Specifies the external Id column to use if performing an insert. If this value is specified, upsert will be used when the INSERT command is called. | |
| FilterScope | String | False |
Optional scope to limit the records returned from queries. This property can take one of these values: Delegated, Everything, Mine, MineAndMyGroups, My_Territory, My_Team_Territory, or Team. | |
| SystemModstamp | Datetime | True |
System-generated timestamp reflecting the last update to the record. | |
| LastModifiedDate | Datetime | True |
Timestamp of the last time the trigger was modified. |