In Salesforce there is a particular order in which events execute whenever a record is changed or inserted. Following are the steps of trigger execution:
Load the original record or initialize on insert.
Override the old record values with the new values.
Execute all before triggers.
Run the system & user-defined validation rules.
Save the record but do not commit the record to the database.
Execute all after triggers.
Execute the assignment rules.
Execute the auto-response rules.
Execute the workflow rules.
If there are workflow field updates then execute the field update.
If the record was updated with a workflow field update then execute before and after triggers created on the object in the context again but only once.
Execute the processes on that record.
Execute the escalation rules.
Update the roll up summary fields & cross object formula fields.
Repeat the same process with the affected parent or grand-parent records.
Evaluate criteria based sharing rules.
Commit all DML operations to the database.
Execute post commit logic such as sending emails.
< < Previous
Next > >
The batch is going to start shortly. Fill the form given below to Register yourself now.
Fill the form below to get a demo of this course.
Online Salesforce Development Course is soon going to be launched. Please fill the form and we will notify you about the course.