Upsert

Updates or inserts an object from external data.

Salesforce inserts or updates a record depending on whether the external ID currently exists in the external ID field. To force Salesforce to create a new record, set the name of the external ID field to “Id” and the external ID to null.

  • API version (string, optional)
  • Object type (string)
  • External ID field (string)
  • External ID (string, optional)
  • Fields (map, optional)—Maps each field name to an object containing its value

If fields is null, the upserted record is empty.

Swift

Objective-C

Kotlin

Java