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
amritamrit 

how to execute trigger one simulatneously

Hi,

I have two trigger on one object RFP__c.
First trigger which will update values on picklist.Second Trigger will execute based on updated picklist value.
These two trigger works independently.Any idea how to execute together.


Thanks
Amritha
Best Answer chosen by amrit
GlynAGlynA
The only way is to combine the code of the two triggers into a single trigger.  It is not a good practice to have two triggers that execute for the same object on the same event.  This is because there is no way to determine the order in which they will be executed.  Combine your two trigger into one - put the code from the first trigger before the code for the second trigger.  Delete (or inactivate) the unused trigger.

-Glyn

All Answers

GlynAGlynA
The only way is to combine the code of the two triggers into a single trigger.  It is not a good practice to have two triggers that execute for the same object on the same event.  This is because there is no way to determine the order in which they will be executed.  Combine your two trigger into one - put the code from the first trigger before the code for the second trigger.  Delete (or inactivate) the unused trigger.

-Glyn
This was selected as the best answer
ShikibuShikibu
Here's food for thought: http://advancedapex.com/2013/07/26/interesting-trigger-framework/
ShikibuShikibu
And btw, I second GlynA's comments.
amritamrit
Thanks Glyn It is working. @Shikibu Thanks for your reply