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
krish4ukrish4u 

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.

{!REQUIRESCRIPT("/soap/ajax/29.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/29.0/apex.js")}

 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.

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