Search
Twitter

Entries in api usage (2)

Monday
Aug222016

Simplified API limits with Winter '17

One of the headaches for ISVs and even internal developers was efficiently keeping tracking of the current API limits on the ORG. About a year ago Salesforce started to return these limits as part of the SOAP headers so that you could get a real-time count. The problem was that you had to burn API to get the latest count.

I'm excited to see in the pre-release notes for Winter '17 that Salesforce has simplified this. It used to be that for Enterprise Edition, Unlimited Edition, Performance Edition, and Professional Edition with API access enabled, the old calculation was based on your number of licenses and the license types, with a guaranteed minimum of 15,000 calls per 24-hour period. Salesforce has now changed this and set the minimum to 15,000 calls per 24-hour period. 

To me this is a huge help - especially for smaller orgs that only have under 3-10 licenses. I'm very excited to get this rolled out and think it's a step in the right direction. 

 

 

Thursday
Jul112013

Weekly Salesforce API Usage Report

I recently ran into an issue in my Salesforce org that caused all the integrations to fail followed by this error message: "REQUEST_LIMIT_EXCEEDED". After some research, I found out that I had run out of API calls

So today, I'm going to introduce a solution to this problem, one that involves proactively notifying the Salesforce admin of API usage. It's also insanely easy. 

Just go to Setup> Monitoring> API Usage Notifications. This will essentially send out an email notification alerting the admin when the number of API requests consumed reach a specific percentage threshold. Here's an example:

 

This is an automated notification sent to you at your request by salesforce.com. 
Your organization has made 540733 API calls within the last 24 hours. This is 90% of your organization's 24-hour API call limit of 814000 calls. You will receive this notice once every 24 hours until your organization's API usage drops below 85% of your 24-hour call limit (814000 calls). 


For more detail on your organization's API usage, you can review the API Usage Report under the Reports tab. Additionally, if you want to review or change your notifications, the settings can be found in Setup under Administration Setup > Monitoring > View API Usage Notifications.



After creating this notification, an API Usage report can then be found under the Reports tab (just search for "API" in the Reports search bar). And that's it! Now, you don't have to be surprised when you run out of API requests.