You need to sign in to do that
Don't have an account?
JonSimmons1
Stop a trigger from running, if it's already running.
I have a trigger that will update records that will sometimes cause the trigger to be fired a second time. I recall that there is a really easy way to determine if the current running trigger is already running but I can't recall the details. Can anyone help out? Thanks, Jon
I found this searching and it works for me.
Create a class names TriggerRunOnce:
Then in your trigger:
I have now found that if you create a test method that calls this trigger several times. The test method fails....