You need to sign in to do that
Don't have an account?
Leonard Silon
This is the code firing multiple times when the oppty stage is changed to closed won. At the same time the oppty is marked closed one, I have potentially two WFRs firing. One WFR checks a date field. If that date field is blank, then it auto populates it with a calculated date. The second WFR fires if the date field changes and just copies that date adding one day to it.
Those two WFRs firing makes the trigger fire 2 more times. What can be changed int eh trigger to make it only fire once when the oppty is changed to closed won the first time. Seems there needs tob e an ISCHANGED clause but I do not know how to add that.
Trigger firing 3x when should only fire once
This is the code firing multiple times when the oppty stage is changed to closed won. At the same time the oppty is marked closed one, I have potentially two WFRs firing. One WFR checks a date field. If that date field is blank, then it auto populates it with a calculated date. The second WFR fires if the date field changes and just copies that date adding one day to it.
Those two WFRs firing makes the trigger fire 2 more times. What can be changed int eh trigger to make it only fire once when the oppty is changed to closed won the first time. Seems there needs tob e an ISCHANGED clause but I do not know how to add that.
Hi Leonard,
Please click the below link which contains the solution to stop Recursive Trigger,
https://help.salesforce.com/apex/HTViewSolution?id=000133752&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000133752&language=en_US)
Hope it helps.
Thanks,
Vinoth