Skip to content

Index

Schematic Diagram

Salesforce-Order-Of-Execution-Diagram.png
Untitled

Source: (https://prasannajyothi.medium.com/what-is-the-order-of-execution-in-salesforce-c273f9059f6c)

Order of execution in salesforce_ _ by Prasanna _ Medium.pdf

Mnemonic for memorization

https://tomsblogisnotnull.blogspot.com/2019/01/mnemonic-for-salesforce-save-order-of.html

Lion Visits Tiger, Voicing Displeasure to Tiger. Assuming AUTOmatically they Would Fight, he Pounces, ESCALating the ENTanglement Really Furiously, and the Pride Shared the Conquest Party.

Recall Keyword

Execution Step

Lion Visits Tiger

  • Load (record is loaded)
  • Validation (system validation) rules are run, if the request was sent from a standard UI “edit” page.
  • Triggers (before triggers are executed)

Voicing Displeasure to Tiger

  • Validation (system and custom validation)
  • Duplicates (Execute duplicate Rules) if record is identified as duplicate and “block” action is taken, no further step is taken down below
  • Triggers (after triggers are executed) after the record is saved, but not committed to database

ASSuming AUTOmatically they Would Fight

  • Assignment (Execution of assignment rules) [9]
  • Auto-response (execution of auto-response rules) [10]
  • Workflow (execution of workflow rules)

he Pounced, ESCALating the ENTanglement Really Furiously

  • Process (process builder and flow execution)
  • Escalation rules execution
  • Entitlement rules execution
  • Rollup-Summary fields are updated
  • Cross-object formulas are updated

the Pride Shared the Conquest Party

  • Parent (and grandparent records are updated)
  • Sharing (Criteria bases Sharing Rules are evaluated)
  • Commit DML Operations to database
  • Post-Commit Operations (sending email, etc)

  • There are some Additional Considerations to be taken into account while working with Triggers:

    • TBD

Last update : 25 mai 2024
Created : 15 avril 2024