1

In one of my Oppty after update triggers, I found that the account triggers fire as well.

enter image description here

  • Why is the account updated ? (I am not updating values on the account object)
  • Is there a way to control the execution, so my account triggers (in this case) will not fire?
1
2

There is a good discussion here on what sobject properties do not cause triggers to fire which I think should answer your question.

In terms of controlling the execution, you could use a static class and variable to store some basic contextual information that informs you whether in this transaction the opportunity trigger has already fired, if so then do not run the trigger code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.