I would like know if there is any global variable i can use to prevent trigger fire from a future method.
Like I can use
to prevent trigger fire from batch classes
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
System.isFuture will do what you're looking for. You can also use the System class to determine if you're running in a scheduled context, batchable context, or queueable context.