Roughly: the record loads, new values are applied and system validation runs, then before save flows, before triggers, custom validation rules and duplicate rules, then the record is saved but not committed. After triggers run next, then assignment and auto response rules, legacy workflow field updates that can fire update triggers again, after save flows, roll up summaries on parents, and finally the commit and post commit work such as emails.
Why interviewers ask this
Many hard Salesforce bugs come from automation interacting in an order the developer did not expect: a validation rule rejecting a value a trigger set, or a workflow field update firing triggers a second time. The interviewer wants the broad sequence, where flows, triggers and validation sit, and the consequences for design. Nobody expects every step recited, but knowing that triggers can run twice in one save is the detail that matters.
How to structure your answer
- Cover the before phase: flows, triggers and validation.
- Explain the save without commit and the after phase.
- Mention the steps that can fire triggers again.
- Close with commit, post commit work and design lessons.
Example answer
I group it into phases rather than reciting every step. First the before phase: Salesforce loads the record, applies the new values and runs system validation, then before save flows, then before triggers, then custom validation rules and duplicate rules. That order matters, because a validation rule sees values a before trigger has set. Then the record is saved but not committed. Next the after phase: after triggers, then assignment and auto response rules, then any legacy workflow rules. If a workflow does a field update, the record is updated again and the before and after update triggers fire one more time, a classic source of double processing. Then after save flows. After that, roll up summaries recalculate on the parent, which runs the parent's own save and triggers. Finally everything commits, and only then do post commit actions run, like emails and queued asynchronous jobs. The lesson is to keep each object's automation in as few tools as possible and never assume my trigger is the last thing to touch the record.
Walking into this interview soon? GhostPilot listens to your live call, spots the question the moment it is asked, and puts a structured answer on your screen in real time. Try it on your next mock, or grab a $29 Session Pass, no subscription, for the real thing.
See how it worksFollow-up questions to expect
- What happens to queued asynchronous work if the transaction rolls back?
- Why might a trigger run twice during a single save?
- How would you debug a value that changes after your trigger sets it?
Related salesforce developer questions
Your interviewer will ask their own version of this. Paste your actual job description into the free Question Predictor and get the 20 questions that role is most likely to ask, with what each one is really probing.
Predict my questions