getRequestForUpsert

open fun getRequestForUpsert(apiVersion: String, objectType: String, externalIdField: String, externalId: String, fields: Map<String, Any>): RestRequest

Request to upsert (update or insert) a record.

Return

RestRequest object that requests a record upsert.

Parameters

apiVersion

Salesforce API version.

objectType

Type of the record.

externalIdField

Name of ID field in source data.

externalId

ID of source data record. Can be an empty string.

fields

Map of the fields to be upserted and their new values. Can be null.

See also

<a href="http://www.salesforce.com/us/developer/docs/api_rest/Content/resources_sobject_upsert.htm">http://www.salesforce.com/us/developer/docs/api_rest/Content/resources_sobject_upsert.htm</a>