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 | Boolean | False |
Indicates whether the trigger executes before insert operations. | |
| UsageAfterInsert | Boolean | False |
Indicates whether the trigger executes after insert operations. | |
| UsageBeforeUpdate | Boolean | False |
Indicates whether the trigger executes before update operations. | |
| UsageAfterUpdate | Boolean | False |
Indicates whether the trigger executes after update operations. | |
| UsageBeforeDelete | Boolean | False |
Indicates whether the trigger executes before delete operations. | |
| UsageAfterDelete | Boolean | False |
Indicates whether the trigger executes after delete operations. | |
| UsageIsBulk | Boolean | False |
Indicates whether the trigger is designed to handle bulk data operations. | |
| UsageAfterUndelete | Boolean | 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 | Boolean | 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. |
| LastModifiedDate | Datetime | True |
Timestamp of the last time the trigger was modified. | |
| LastModifiedById | String | True |
User.Id |
ID of the user who last modified the trigger. |
| SystemModstamp | Datetime | True |
System-generated timestamp reflecting the last update to the record. |