SOAP API Flashcards
What is the recommended data set limit for SOAP API?
< = 5000 records. If the number of records is more, use rest based bulk API
What is the transaction and commit behaviour of SOAP API?
By default, each API call allows for partial success if some records are marked with errors. This can be changed to an “all or nothing” behaviour where all the results are rolled back if any error occurs. It’s not possible to span a transaction across multiple API calls. To overcome this limitation, it’s possible for a single API call to affect multiple objects.
Can SOAP API be used with Platform events?
Yes, SOAP API can be used to publish events in PE object. Only create operation is supported.
What security is supported by SOAP calls?
- The client executing SOAP API must have a valid login and obtain a session to perform any API calls.
- The API respects object-level and field-level security configured in Salesforce based on the logged-in user’s profile.
What are two types of WSDL files provided by Salesforce?
- Enterprise WSDL—Provides a strongly-typed WSDL that’s specific to a Salesforce org.
- Partner WSDL—Contains a loosely typed WSDL that’s not specific to a Salesforce org.
What operations are supported by SOAP API?
- Publish events to notify your Salesforce org
- Query data in your org
- Create, update, and delete data
- Obtain metadata about your org
- Run utilities to perform administrative tasks
What is the query timeout in a SOAP API call?
each SOQL query has a timeout of 120 Secs.
SOAP API/REST API - Synchronous call data volume limits limits
- The SOAP login request size is limited to 10 KB or less. You can make a maximum of 3,600 calls to the login() function per user per hour. If you exceed this limit, the API returns an error.
- Create, Update, Delete—The remote system can create, update, or delete up to 200 records at a time. Multiple calls can be made to process more than a total of 200 records, but each request is limited to 200 records in size.
- Query Results Size — By default, the number of rows returned in the query result object (batch size), returned in a query() or queryMore() call is set to 500. The maximum number of rows returned is 2,000. You can explicitly set the batch size, but there’s no guarantee that the requested batch size will be the actual batch size. This is done to maximize performance. Where the number of rows to be returned exceeds the batch size, use the queryMore() API call to iterate through multiple batches.
- The maximum event message size is 1 MB. Publishing an event using the Salesforce APIs counts against your standard API limits.