Skip to main content
Custom Errors

How to raise your own errors within a flow.

James Kent avatar
Written by James Kent
Updated over 2 months ago

MoveData supports a user raising a custom error within a Lightning Flow. To achieve this you will need to create an output-enabled, text collection variable named Errors.

To set the error, you add the error message to the Errors collection.

When a flow finishes it execution with a value in the Errors collection, the notification will fail as demonstrated below:

Gracefully Ending a Notification

If you are wishing to gracefully end the execution of a notification, you can use the Break command as noted in the Flow Command Reference. This will ensure the notification is not marked as a failure.

Did this answer your question?