01 · Order of execution, the map

Before triggers, validation, after triggers, assignment rules, flows, roll-ups — what actually runs when you press Save.

Article 15m 1 min read Updated 08 Jul 2025
01 · Order of execution, the map
Modules

Before triggers, validation, after triggers, assignment rules, flows, roll-ups — what actually runs when you press Save.

Why the map matters

Half of all 'my field keeps getting overwritten' mysteries are two automations at different steps of the same save. You cannot debug what you cannot sequence.

The steps that bite

Before-save flows run before before-triggers. Workflow field updates re-fire triggers. Roll-ups run late. Print the diagram and pin it where you debug.

Practice in your org

  • Open your Developer Edition org and follow along step by step
  • Change one thing at a time and note what happens
  • When something breaks, read the error before searching for it