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

  • What is the Order of Execution (Rules, Triggers etc.) in Salesforce & Debug Log?

     Kumar updated 5 years ago 2 Members · 2 Posts
  • Vikas Kumar

    Member
    December 7, 2016 at 1:56 pm

    Hi all,

    what is the order of execution (Rules,triggers,validation rules,workflow etc)in salesforce and debug log?

    please give some suggestions

    thanks

  • 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.

Viewing 1 - 2 of 2 posts

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos