function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sfdc_syedsfdc_syed 

what is the execution of order in salesforce?

Hi All,

 

what is the execution of  order in salesforce?

 

Thanks

Navatar_DbSupNavatar_DbSup

standard Salesforce.com order of execution

 


  • Old record loaded from database (or initialized for new inserts)
  • New record values overwrite old values
  • System Validation Rules
  • All Apex “before” triggers
  • Custom Validation Rules
  • Record saved to database (but not committed)
  • Record reloaded from database
  • All Apex “after” triggers
  • Assignment rules
  • Auto-response rules
  • Workflow rules
  • Escalation rules
  • Parent Rollup Summary Formula value updated (if present)
  • Database commit
  • Post-commit logic (sending email)

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

sfdc_syedsfdc_syed

Hi Navatar,

 

It is possible to change the execution of order in salesforce i.e which you have given above?

 

Thanks

Ankit AroraAnkit Arora

Question comes in my mind when you say you want to change the order and that is "Why?"

 

Each step have it own functionality and logic and in most cases they work independent. Am interested in knowing your specific requirement.

 

Thanks

Ankit Arora

Blog | Facebook | Blog Page

Kevin Van der PlasKevin Van der Plas

Hi Ankit,

 

I have the same question. In our company we have territory (account) assignment rules which runs on by workflow updated fields. The problem is that first the assignment rules run and afterwards the workflow rules. Can we change this order?

 

Thanks in advance,

Kind regards,

Kevin