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
David HagenDavid Hagen 

28,000 api call can't figure out how it possible.

Hi Guys,

I have a system call 'X' which runs cronjob to inserts/update records in SF ojects(contact,task).  I also have triggers(insert,update) with callout to system 'X' on the objects. I reach the maximum number of AP calls 28,000. I know there is no way System X can send 28,000 Api calls. Not sure whats happening. I thought it's loop so, I have added on triggers, if the changes are made by the same user as system X don't fire the trigger.
 
Daniel BallingerDaniel Ballinger
You might want to the Event Monitoring API.  See Using Event Monitoring (https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/using_resources_event_log_files.htm). With this (paid feature) you can see exactly what API calls were made in a time period. This would be the easiest way to see what is going on.

There are a few other suggestions in API call limits and Reporting (FAQ) (https://help.salesforce.com/HTViewSolution?id=000003706&language=en_US)