How to subscribe to BatchApexErrorEvent and send notifications in a flow?
BatchApexErrorEvent notifies subscribers (Apex Triggers, Flows, Processes & Streaming API) of errors and exceptions that occur during the execution of a batch Apex class. This blog focusses on subscribing to the error event using no code flow approach.
Prerequisite: The batch Apex class needs to implement Database.RaisesPlatformEvents
Flow:
Create a new Flow and select 'Platform Event-Triggered' flow
Start:
Comments
Post a Comment