• #66862
    Salesforce | Ratnesh Ratnesh #15
    Forcetalks

    Can you explain the order of execution in Triggers in Salesforce?

    Can you explain the order of execution in Triggers in Salesforce?

     

    • This topic was modified 6 days, 23 hours ago by Salesforce | Ratnesh Ratnesh.
    • This topic was modified 6 days, 3 hours ago by Salesforce | Team Team.
    • This topic was modified 6 days, 3 hours ago by Salesforce | Team Team.
    #66865
    Salesforce | Deepak Deepak #20
    Forcetalks

    Here is order of execution in salesforce:

    The original record is loaded from the database.
    System Validation Rules.
    Executes all before triggers.
    Custom Validation rules.
    Executes duplicate rules.
    Saves the record to the database, but doesn’t commit yet.
    Executes all after triggers.
    Executes assignment rules.
    Executes auto-response rules.
    Executes workflow rules.
    If there are workflow field updates, updates the record again.
    If the record was updated with workflow field updates, fires before and after triggers one more time. Custom validation rules, duplicate rules, and escalation rules are not run again.
    Executes processes and flows launched via processes and flow trigger workflow actions.
    Executes escalation rules.
    Executes entitlement rules.
    If the record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the parent record. Parent record goes through save procedure.
    If the parent record is updated, and a grandparent record contains a roll-up summary field or is part of a cross-object workflow, performs calculations and updates the roll-up summary field in the grandparent record. Grandparent record goes through save procedure.
    Executes Criteria Based Sharing evaluation.
    Commits all DML operations to the database.
    Executes post-commit logic, such as sending email.

Viewing 2 posts - 1 through 2 (of 2 total)

Please to reply to this topic.

Popular Salesforce Blogs

CONTACT US

We're not around right now. But you can send us an email and we'll get back to you, asap.

Sending

About Us

Forcetalks is a Salesforce collaboration platform for coders & developers, geeks & nerds, consultants & business heads, admins & architects, managers & marketers and of course the business owners. A community where you can learn from, where you can contribute to. For you. For Salesforce. Read More...

Copyright 2020 Forcetalks. All Right Reserved.

Log in with your credentials

or    

Forgot your details?