+ Start a Discussion
Osiris77706Osiris77706 

How to use .net SFDC Web Service to check API usage Programmatically

Hello,

      I'm currently developing a .net SFDC Web Service that creates new Assets based on a table that an ERP populates on a nightly basis. Without realizing it, on the first run the Service used up all of our API calls. I'm wondering if anyone knows of a way to programatically check the current API usage within the service ? the idea is that i'll only let the rest of the code run if i'm under 60% or so if API usage.