Order of execution in salesforce

 

Order of execution in salesforce is like an ABC in Salesforce World!

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.
11. Criteria Based Sharing rules are evaluated.
12. Any Post-Commit Logic is executed.

 

Reference: https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_triggers_order_of_execution.html

 

Advertisements

Author: Paarth Jolly

Hey Everyone, I am a Salesforce Developer/Consultant/Geek/Evangelist,loving & living Salesforce since 2014 and a Student I am 4 X Certified Salesforce Professional . If you are somewhere around Chandigarh , Join us at Chandigarh DUG to learn, share & succeed together - Salesforce Developer Group Chandigarh https://www.meetup.com/Salesforce-Developer-Group-Chandigarh/

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s