+ Start a Discussion
sd2008sd2008 

Is there a way to see how many @future function calls made?

Is there a way to track how many @future function calls made and when?
Best Answer chosen by Admin (Salesforce Developers) 
Venkat PolisettVenkat Polisett

Limits.getFutureCalls(); -- Returns the number of methods with the future annotation that have been executed (not necessarily completed) in the current context. Limits.getLimitFutureCalls(); -- Returns the total number of methods with the future annotation that can be executed (not necessarily completed) in the current context.