getRequestForCollectionUpsert
open fun getRequestForCollectionUpsert(apiVersion: String, allOrNone: Boolean, objectType: String, externalIdField: String, records: JSONArray): RestRequest
Request for upserting multiple records with fewer round trips
Parameters
apiVersion
Salesforce API version.
allOrNone
Indicates whether to roll back the entire request when the upsert of any object fails (true) or to continue with the independent upsert of other objects in the request.
objectType
Type of the requested record.
externalIdField
Name of ID field in source data.
records
A list of sObjects.
See also
<a href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_upsert.htm">https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_upsert.htm</a>