Newer Version Available
Change Event Trigger Considerations
Keep these considerations in mind when working with change events in Apex
triggers.
- Triggers for Non-Enabled Objects
- You can save an Apex trigger for a change event object even if the object isn’t selected for notifications on the Change Data Capture page. When the object isn’t selected, the trigger doesn't fire. To ensure that the trigger fires, select the object for notifications. Any type of change event fires a change event trigger, including gap events and overflow events.
- No Formula Field Support
- Formula fields aren't supported in Change Data Capture. They are null in a change event trigger, regardless of whether they were changed.
- Null Name Field for Person Accounts
- For a person account, the Name compound field in the AccountChangeEvent received in the trigger is null. The FirstName and LastName fields, which are included in the Name field, contain the person account first name and last name values. In contrast, the ContactChangeEvent Name field contains the concatenated values of the salutation, first name, and last name.