1.

In Which Sequence Trigger And Automation Rules Run In Salesforce.com?

Answer»

The following is the order salesforce logic is applied to a record.

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 (EE / UE only)
5. CUSTOM Validation Rules
6. Record saved to database (but not committed)
7. Record reloaded from database
8. All Apex “after” triggers (EE / UE only)
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)
Additional notes: There is no way to control the order of EXECUTION within each group above.

The following is the order salesforce logic is applied to a record.

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 (EE / UE only)
5. Custom Validation Rules
6. Record saved to database (but not committed)
7. Record reloaded from database
8. All Apex “after” triggers (EE / UE only)
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)
Additional notes: There is no way to control the order of execution within each group above.



Discussion

No Comment Found