Newer Version Available
Prerequisites
Before subscribing to change events with an Apex trigger, set up debug logs and select
the Account object for notifications.
Set Up Debug Logs
To obtain debug logs for change event trigger execution, set up debug logs for the Automated Process entity.
- From Setup, enter Debug Logs in the Quick Find box, then select Debug Logs.
- Click New.
- For Traced Entity Type, select Automated Process.
- Select the time period to collect logs for and the debug level.
- Click Save.
Enable Change Notifications for the Object
On the Change Data Capture page in Setup, enable change notifications for the Account object. See Select Objects for Change Notifications.