Wednesday, 9 July 2014

Salesforce | Order of execution of triggers in Salesforce

1  Old record loaded from database (or initialized for new inserts)
2  New record values overwrite old values
3  System Validation Rules
4  All Apex “before” triggers
5  Custom Validation Rules
6  Record saved to database (but not committed)
7  Record reloaded from database
8  All Apex “after” triggers
9  Assignment rules
10  Auto-response rules
11  Workflow rules
12  Escalation rules
13  Parent Rollup Summary Formula value updated (if present)
14  Database commit
15  Post-commit logic (sending email)

No comments:

Post a Comment

Thank you.