Before-save vs after-save record-triggered flows: what's the difference and when do you use each?
Your confidence:Not rated
Model answer
| Before-save | After-save |
|---|---|
| Runs before the record is written | Runs after the record is saved (before commit) |
| Can only update the triggering record's fields | Can create or update related records, send emails, call actions, subflows |
| No extra DML; very fast | Updating the triggering record causes another save cycle |
| No scheduled or async paths | Scheduled paths and asynchronous path available |
Use before-save for defaults, derived fields and normalisation on the same record. Use after-save for anything touching other records or the outside world, with async paths for callouts.
โ Key points to hit
โ Red-flag answers
- Using after-save to update the same record's fields
- Thinking before-save can send emails
โช Follow-ups
Where do before-save flows run in the order of execution?
Before before-triggers, after the system's initial validation. After-save flows run after after-triggers and other automation such as assignment rules (simplified).
Can a before-save flow read the old value?
Yes, through $Record__Prior, which also lets you set entry conditions on what changed.