Tuesday, January 21, 2014

In Which sequence Trigger and automation rules run in Salesforce.com The following is the order salesforce logic is applied to a record.

In Which sequence Trigger and automation rules run in Salesforce.com The following is the order salesforce logic is applied to a record.

Old record loaded from database (or initialized for new inserts)
New record values overwrite old values
System Validation Rules
All Apex “before” triggers (EE / UE only)
Custom Validation Rules
Record saved to database (but not committed)
Record reloaded from database
All Apex “after” triggers (EE / UE only)
Assignment rules
Auto-response rules
Workflow rules
Escalation rules
Parent Rollup Summary Formula value updated (if present)
Database commit
Post-commit logic (sending email)
Additional notes: There is no way to control the order of execution within each group above.

1 comment: