A. Publish the error event using the addError() method and write a trigger to subscribe to the event and notify the external system.
B. Publish the error event using the addError() method and have the external system subscribe to the event using CometD.
C. Publish the error event using the Eventbus.publish() method and have the external system subscribe to the event using CometD.
D. No publishing is necessary. Have the external system subscribe to the BatchApexErrorEvent.

Suggest answer: D

Reference:

No comments:

Please share to make the community better.