Cert++
Close

Record-triggered Flow trigger order on one object

Key Takeaway

Trigger order only sequences record-triggered flows of the same trigger type on one object. Flows with values 1 to 1,000 run first, then flows with no value run by activation date, then flows with values 1,001 to 2,000 run last.

When several record-triggered flows run on the same object, a trigger order value decides which one runs first. You give each before-save or after-save flow a number, and flows of the same trigger type on that object then run in a predictable sequence. Because the sequence is predictable, teams or logical owners can keep their own smaller flows instead of packing everything into one complex flow, and still get consistent results.

What trigger order compares

Trigger order compares only flows on the same object with the same trigger type. A before-save flow is ordered only against other before-save flows on that object. An after-save flow is ordered only against other after-save flows on that object.

Trigger order values always respect order of execution rules. You can make an after-save flow run before other after-save flows, but you can't make it run before a before-save flow or an Apex trigger, even if its trigger order value is lower.

So when you need logic to run after a specific flow, build that logic as a record-triggered flow on the same object with the same trigger type as that flow. Then give it a trigger order value that places it after that flow. If you put the logic in an Apex trigger or in a flow of the other trigger type, it sits outside the sequence that trigger order controls.

On the Case object, an admin has an after-save flow named Assign_Escalation_Owner with a trigger order value of 20. She wants an email to go to the new owner after that flow assigns one. She builds the email step as a second after-save record-triggered flow on Case and gives it a value of 30, so it runs after Assign_Escalation_Owner. If she had built the email step as a before-save flow, no trigger order value could move it after the after-save flow.

Platform Administrator II Study Guide

Checklist progress

0/290Learned

Prepare for the Exam

Play Today's Certle

Study Community

Ask questions and get the latest info from other Platform Administrator II studiers.