Activity Forums Salesforce® Discussions How can we stop the refire of the same trigger in salesforce?

  • How can we stop the refire of the same trigger in salesforce?

    Posted by Mohit on October 25, 2016 at 3:04 pm

    Hi All,

    How can we stop the refire of the same trigger in salesforce?

    I have scenario in which I made a trigger on insert of attachment but when I inert the attachment with different parentId it refiring itself. So it become circular.

    Please give suggestion

    Vikas Kumar replied 7 years, 1 month ago 2 Members · 1 Reply
  • 1 Reply
  • Vikas Kumar

    Member
    January 23, 2017 at 7:49 am

    Hi Mohit,

    In this scenario you can use a Boolean Flag put a check condition to fire trigger  By default make it false Once the trigger is fired change it to true .

    but if you elaborate your problem then it will much easier  to provide better solution

    thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos