Class: createIf

Adaptor.createIf(sObject, externalId, attrs, state) → {Operation}

new createIf(sObject, externalId, attrs, state) → {Operation}

Upsert an object.
Parameters:
Name Type Description
sObject String API name of the sObject.
externalId String ID.
attrs Object Field attributes for the new object.
state State Runtime state.
Source:
Returns:
Type
Operation
Example
upsert('obj_name', 'ext_id', {
  attr1: "foo",
  attr2: "bar"
})