Add a Trace Flag Entry for the Default Automated Process User
To collect logs for an event subscription, add a trace flag entry for the Automated
Process entity in Setup.
- From Setup, in the Quick Find box, enter Debug Logs, then click Debug Logs.
- Click New.
- For Traced Entity Type, select Automated Process.
- Select the time period to collect logs. The start and expiration dates default to the current date and time. To extend the expiration date, click the end date input box, and select the next day from the calendar.
- For Debug Level, click New Debug Level. Enter a name, such as CustomDebugLevel, and accept the defaults.
- Click Save.
To collect logs for the user who publishes the events, add another trace flag entry for that user.