Cert++
Close

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).
Platform App Builder Study Guide

Checklist progress

0/340Learned

Create and configure flows using Flow Builder

0/23

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform App Builder studiers. 757 members and growing.