Activity Forums Salesforce® Discussions What is the Order of Execution (Rules, Triggers etc.) in Salesforce & Debug Log?

  • Kumar

    Member
    January 6, 2017 at 11:49 am

    Hey Vikas,

    The order of execution in Salesforce is as follows:

    1. System Validation rule (required field, field format)
    2. Before Triggers are executed
    3. Custom Validation rules are checked
    4. After Triggers are executed
    5. Assignment Rules are executed
    6. Auto-Response Rules are executed
    7. Workflow Rules are executed
    8. Before and after triggers are executed one more time if the workflow rule updates a field
    9. Escalation Rules are executed
    10. Parent Rollup Summary Formula or Cross Object Formula fields are updated in the respective objects. (These parent records also goes through the entire execution order)
    11. Criteria Based Sharing rules are evaluated
    12. Any Post-Commit Logic is executed (like sending an email)

    Hope this helps.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos