I've a connected app in salesforce and I'm using bulk api for downloading xml files but for updates I'm using getupdate rest call, salesforce documentation says that there's a limit of api calls per day. My question is does that limit apply to my connected app or each client? My connected app uses oauth2 for client authentication and api calls
1 Answer
Each Salesforce org has a limit on the total number of API calls per day for that org. It is not specific to your connected app or client.
The number of allowed API calls varies depending on the Salesforce edition and the counts of each type of license, but you can approximate it as 15,000 + (15,000 * the number of Salesforce Platform licenses). The total is capped at 1,000,000 for Enterprise and Professional editions, but uncapped for Unlimited and Performance edition. You can find the full nuance of the calculation at API Request Limits and Allocations.
Note that the limit is not for a calendar day. Like many Salesforce org-wide limits, it's a rolling 24 hour period. It does not reset at midnight. This means that if you exceed the limit, recovery may not be instantaneous depending on the distribution of limits consumption across the 24 hour window.
You should also note that there are a number of limits specific to the Bulk API, including a cap of 10,000 batches per rolling 24 hour period.
-
Good answer, but to avoid confusion, I edited your answer a bit. An instance is an entire pod (e.g. na1) and is composed of many organizations. Users work in an organization (often abbreviated to just org).– sfdcfox ♦Commented May 27, 2018 at 22:13
-
To be honest, I've often used the words interchangeably. Appreciate the clarification! Commented May 27, 2018 at 22:14
-
Yes, for a typical customer, instance and org would be synonymous, but it's important when you hear official communication from salesforce.com, since an org-wide problem is much less severe than an instance-wide problem. Salesforce.com tries pretty hard to keep those terms discrete for that reason.– sfdcfox ♦Commented May 27, 2018 at 22:19