+ Start a Discussion
ch ranjithch ranjith 

If one object in Salesforce have 2 triggers which runs “before insert”. which one will be executed first? Is there any way to control the sequence of execution of these triggers?

Best Answer chosen by ch ranjith
If you write two triggers, there is no particular order of execution and one might run first and sometimes second. In order to control the triggers order of execution, many experts have built Trigger Templates,that basically allow developers to control the order of execution and also control when the trigger needs to be fired. Please take a look at the below blog, you can even search for "Trigger Template" and get many other posts