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
RadnipRadnip 

Get the Future call limits in a 24hr period.

I'm trying to find a way you can get the number of future calls an org has processed in a 24hr period. In the docs there are Limits.getFutureCalls() and Limits.getLimitFutureCalls() but these seem to be the number of future calls in the future call stack and the limit of the stack rather than the number that have taken place in the 24hr period...

Best Answer chosen by Admin (Salesforce Developers) 
dmchengdmcheng

I think future call history is stored in AsyncApexJobs object, but I'm not sure.  I have a VF page that shows batch job status and I seem to recall a future call appearing once in the list.

All Answers

dmchengdmcheng

I think future call history is stored in AsyncApexJobs object, but I'm not sure.  I have a VF page that shows batch job status and I seem to recall a future call appearing once in the list.

This was selected as the best answer
RadnipRadnip

Oh yes of course then just do a count up of the future calls on the object! :)

 

Thanks