You need to sign in to do that
Don't have an account?

every syObject is only one trigger active at sometime?
hi all
I write a apex trriger about a sobject (for example called 'X'),but if I want to write another apex trigger (for example called 'X'1)about the same sobject and set them active ,could I test the two apex trigger at the same sobject at the same time ?
I write the apex testing class called 'TestX' and 'TestX1' , can I do it like that?
if can ,please tell me how to set and confige. thank you wait for your answer....
You can have multiple triggers defined on the same SObject. However, there is no order of execution guarantee - Trigger 1 might fire before Trigger 2 in sandbox but the reverse in PROD. Personally, as a best practice, if I need to do multiple functions on a single SObject, say during a Before insert/before update event, I: