function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SFDummySFDummy 

How to determine trigger execution is complete

Hello,
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
 
SFDummySFDummy
@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.