Class: create

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

new create(logical, sObject, attrs, state) → {Operation}

Create a new object if conditions are met.
Parameters:
Name Type Description
logical boolean a logical statement that will be evaluated.
sObject String API name of the sObject.
attrs Object Field attributes for the new object.
state State Runtime state.
Source:
Returns:
Type
Operation
Example
createIf(true, 'obj_name', {
  attr1: "foo",
  attr2: "bar"
})