You need to sign in to do that
Don't have an account?
Kenji775
Apex Trigger Execution Order
Hey all.
Is execution of triggers on the same object just based on the type of update, then the name of the trigger? Is there a way to control this? My first thought was to have one trigger per object, then from that trigger call the associated code/classes in the order I want, but that would require quite a bit of a rewrite I think. Any other way to control the order of execution?
beyond "before" and "after" trigger types, you can not control the order of execution of triggers. If you need to chain events, your initiating trigger should call methods in the order that they are required.
All Answers
beyond "before" and "after" trigger types, you can not control the order of execution of triggers. If you need to chain events, your initiating trigger should call methods in the order that they are required.
Ok, thats cool. I'll begin refactoring my code to have a single trigger that calls the required methods. Thank you.