+ Start a Discussion
logontokartiklogontokartik 

Question on API Counts... Need Confirmation

Hi,

I am builing a Integration with Salesforce and .NET application. I have created a WebService in Salesforce with a Wrapper of 4 List of Custom Objects, shown as Below - 

 

global class notificationService {
	
	global class errorOutput {
      webservice String errorMessage; 
      webservice boolean Success;    
     }
     
/* Global wrapper that contains list of locations, iservers, notifications, subscriptions
*/
    global class objectWrapper {
    	webservice List<Notification__c> notifications;
    	webservice List<Location__c> locations;
    	webservice List<IServer__c> iservers; 
    	webservice List<Subscription__c> subscriptions;
    } 

 

The Obejct Wrapper is populated at the .NET side and they can actually include 1000 of records in each custom object.

After they generate the Object Wrapper, they do a call to the 

 

webservice static errorOutput insertDataObjects(objectWrapper iObject) {

 I wanted to confirm that this is a single API Call to the Salesforce.

 

Any help in knowing the API Counts programatically is appreciated. 

 

Thanks

Kartik

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

API counts map to HTTP requests, so if you make one http request and pass 1000 rows of data in one go, that still counts as just 1 api call.

All Answers

SuperfellSuperfell

API counts map to HTTP requests, so if you make one http request and pass 1000 rows of data in one go, that still counts as just 1 api call.

This was selected as the best answer
logontokartiklogontokartik

Thanks Simon for confirming.

 

Thats right. I even tested it by writing a java client that calls my custom WS and inserts records every one minute.  Well. we still need to consider that the authentication counts as 1 API too. 

 

Regards,

Kartik