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
SoleesSolees 

Query API current number to send mail before hitting the limit

Hello friends, i want to send a mail before hitting the API limit, is this possible? The customer sure will appreciated.

 

Hope it can be done somehow.

 

Thanks.

Best Answer chosen by Admin (Salesforce Developers) 
SoleesSolees

This is very cool to know! But i was looking for something that i found later on.

 

If you want to send an email when you are hitting a % of your APIs there is a link in Monitor-> API Usage Notification.

All Answers

Vinita_SFDCVinita_SFDC

Hello,

 

You can query various limits with Limit Static Methods and make use of them in your code. Please refer following link for list of limit methods:

 

http://docs.database.com/dbcom/en-us/db_apex/apex_System_Limits_static_methods.htm?version=186.0

SoleesSolees

This is very cool to know! But i was looking for something that i found later on.

 

If you want to send an email when you are hitting a % of your APIs there is a link in Monitor-> API Usage Notification.

This was selected as the best answer