When there is any DML on the Salesforce Record, Salesforce perform the following actions in order:
1. Salesforce loads the original values from the database or initialize the new values.
2. Loads the new value from the request and overwrite the old values.
3. System Validation will run. (In case of Opportunity Line Items Custom Validation will also run)
4. Salesforce executes all the before triggers.
5. Custom Validation will run.
6. Records will save to the database but will not commit
7. Executes all after trigger.
8. Assignment Rule
9. Auto Response Rule
8. Workflow rule
9. Escalation rule
10. Commits all the DML to the database.
11. Post Commit Logic such as sending mails.
No comments:
Post a Comment