Prerequisites
Before subscribing to change events with an Apex trigger, set up debug logs and select the Account object for notifications.
To obtain debug logs for change event trigger execution, set up debug logs for the Automated Process entity.
- From Setup, enter
Debug Logsin 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.
On the Change Data Capture page in Setup, enable change notifications for the Account object. See Select Objects for Change Notifications in the User Interface.