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

Ajax script in custom button will count the API limit ?

Hi Guys,

We have a custom button on Opportunity page and included below scripts and executing a class method.


 when i see in the debug log it is showing as API request. so will it count under "API REQUESTS, LAST 24 HOURS"

please suggest on this.

ShashankShashank (Salesforce Developers) 
The answer is no. Ajax requests are not counted against "API REQUESTS, LAST 24 HOURS".