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?
Saariko
  • 5,610
  • 13
  • 75
  • 165

1 Answers1

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.

pbattisson
  • 3,308
  • 1
  • 22
  • 25