> ## Content Index
> Fetch the complete content index at: https://www.namastesalesforce.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# 01 · Order of execution, the map
- URL: https://www.namastesalesforce.com/training/apex-triggers/order-of-execution-the-map/
- Published: 2025-07-08T09:00:00.000Z
- Updated: 2025-07-08T09:00:00.000Z
- Description: Before triggers, validation, after triggers, assignment rules, flows, roll-ups — what actually runs when you press Save.
- Author: Swarnil Singhai
- Tags: Apex Triggers, #training, #duration-15m, #Import 2026-09-03 19:13

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