Newer Version Available

This content describes an older version of this product. View Latest

Email Notifications for Triggers in Error State

When an Apex platform event trigger exceeds the maximum number of retries and is in error state, you are emailed a notification. To resume processing of new event messages, fix and save the trigger. Missed event messages sent during the time when the trigger was stopped can’t be processed again.

The email notification is sent to the developer specified in the Last Modified By field on the trigger. The email is sent to more recipients (users and external email addresses) that you specify in the Apex Exception Email page in Setup. The recipients specified in the Apex Exception Email also apply to emails sent when Apex exceptions occur in all Apex triggers and classes.

To set up more recipients:
  1. From Setup, enter Apex Exception Email in the Quick Find box.
  2. Select Apex Exception Email.

The users and email addresses entered apply to all managed packages in the customer's org. You can also configure Apex exception emails using the Tooling API object ApexEmailNotification.