getRequestForCollectionCreate

open fun getRequestForCollectionCreate(apiVersion: String, allOrNone: Boolean, records: JSONArray): RestRequest

Request for creating multiple records with fewer round trips

Parameters

apiVersion

Salesforce API version.

allOrNone

Indicates whether to roll back the entire request when the creation of any object fails (true) or to continue with the independent creation of other objects in the request.

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_create.htm">https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_sobjects_collections_create.htm</a>