Custom Error on record-triggered paths
Key Takeaway
A Custom Error element in a record-triggered flow shows your message, rolls back the current transaction and blocks the triggering change, on a normal path or on a fault path.
The Custom Error element lets a record-triggered flow stop a record change and show the user a message you write. A flow uses it to block a save or a delete, the way a validation rule does. The message tells the user exactly what went wrong, so they can fix it and try again.
What happens when the element runs
When a Custom Error element runs, it does three things:
- It shows your error message.
- It rolls back the current transaction.
- It blocks the change that triggered the flow (the triggering change).