Class: upsertIf

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

new upsertIf(sObject, attrs, state) → {Operation}

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