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
mahimahi 

order of execution of triggers and workflows

hi all,
 
i have 2 triggers(1 before update, 1 after update) and 1 workflow  on campaign object.
 
could i know what would be order of execution?
 
i am getting error:CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
 
please help me out,
 
thanks,
mahi
 
Ron HessRon Hess
This can indicate that you are trying to modify the record in the after update, which is not allowed.

you could write a simple debug statement to see if your workflow field update is occuring before the before update or after the after.

i don't know the order off hand.

it will help to understand what operations you are performing in each step trigger.

With any error message, it is important to know what statement you were executing when the error occured.

Do you have testMethods which isolate the issue?
mahimahi

thanks Ron, i shall try testMethods.

regards,

mahi