+ Start a Discussion
pgonzaleznetworkpgonzaleznetwork 

How do API calls work

Hi Team,

 

I have the following questions:

 

-How many API calls are required to create a record? i.e If the application using the API creates 567 records, does that mean that 567 Create() calls are used? or a single API call can address multiple accions?

 

-Is this application specific? i.e One application can use one call to create 7 records while other application require less/more calls per record.

 

-Is this configurable by the developer of the app?

 

-Does the number of fields on the created record affect the number of calls used?

 

Thank you so much for your help.

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell

This depends on the API you choose to use, and if you want to count the authentication step(s).

 

Auth could be between 1 and 3 calls depending on exactly which authentication flow you use.

 

Create for the REST API is 1 record at a time, so 567 create calls.

Create for the SOAP API is 200 records at a time, so 6 calls.

Create for the bulk api is 3 calls + data, which'd be 4 calls total.

 

Its configurable by the developer of the app, in that they choose which API to use, and how effeciently they choose to use it.

 

No the number of fields is not a factor.

All Answers

SuperfellSuperfell

This depends on the API you choose to use, and if you want to count the authentication step(s).

 

Auth could be between 1 and 3 calls depending on exactly which authentication flow you use.

 

Create for the REST API is 1 record at a time, so 567 create calls.

Create for the SOAP API is 200 records at a time, so 6 calls.

Create for the bulk api is 3 calls + data, which'd be 4 calls total.

 

Its configurable by the developer of the app, in that they choose which API to use, and how effeciently they choose to use it.

 

No the number of fields is not a factor.

This was selected as the best answer
pgonzaleznetworkpgonzaleznetwork

Hi!

 

Thank you very much for your answer! This helps a lot!