+ Start a Discussion

How to determine trigger execution is complete

I am trying to make @future callout after the trigger execution is complete. But how do I determine that that trigger execution is completed?
pankul guptapankul gupta
The only way to check if a trigger has been fired by enabling the debug logs and let the trigger been fired at the expected functionality and check in the logs if it's been fired or not.
Raj VakatiRaj Vakati
Setting up debugs logs will not help you .. Do one thing .. As triggers are executing synchronously call you @feature method from the last line of the Tigger code
@Raj V Thanks much for your response. Yes, Debug log will not work, because I want to programmatically determine trigger execution is complete.   I tried adding the call to the end of the trigger. But due to the process builder/Workflow rule trigger is firing one more time.  when I count the trigger sometime calls once up to three times based on criteria.