Respond to Salesforce Errors with Processes or Flows

Processes and flows now support standard platform events that the Salesforce Platform provides for you. Both Batch Apex Platform Event (BatchApexErrorEvent) and Platform Status Alert Event (PlatformStatusAlertEvent) capture information about errors in Salesforce. Just like with custom platform events, you can start a process or resume a flow when event messages are received for these standard platform events. Previously, the only platform events that processes and flows supported were custom ones.

Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.

How: When you select a platform event to start a process or resume a flow, Batch Apex Platform Event and Platform Status Alert Event are available, along with your org’s custom platform events.

For example, you want to customize who receives error notifications for Einstein Next Best Action strategies. Those errors are signaled with the Platform Status Alert Event platform event. Create a process that starts when it receives an event message from Platform Status Alert Event. Then use criteria and actions to send the error to the appropriate user.

Specify when to start the process screen

Related Updates for Developers

Tooling API
Updated the EventSubscription object with a new value for the EventType field.