Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

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.

  1. From Setup, enter Debug Logs in the Quick Find box, then select Debug Logs.
  2. Click New.
  3. For Traced Entity Type, select Automated Process.
  4. Select the time period to collect logs for and the debug level.
  5. 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 in the User Interface.