New Step: Check a field on a Salesforce Object
Closed this issue · 0 comments
iamEAP commented
As a Crank user, I should be able to check the value of a field on any Salesforce object via step
Proposed Step Name: Check a field on a Salesforce Object
Proposed Step Expression: the (?<field>[a-zA-Z0-9_]+) field on salesforce (?<objName>[a-zA-Z0-9]+) object with id (?<id>[^\s]+) should (?<operator>be less than|be greater than|be|contain|not be|not contain) (?<expectedValue>.+)
Proposed Step Fields:
field
: (typeSTRING
) Field name to checkobjName
: (typeSTRING
) Salesforce object nameid
: (typeSTRING
) Object IDoperator
: (typeSTRING
) Check Logic (be, not be, contain, not contain, be greater than, or be less than)expectedValue
: (typeANYSCALAR
) Expected field value
Proposed Step Records:
salesforceObject
(typeKeyValue
, namedChecked Object
), returned when an object was found, regardless of step outcome. Guaranteed fields should include:Id
(typeSTRING
) Object's Salesforce IDCreatedDate
(typeDATETIME
) Object's Created DateLastModifiedDate
(typeDATETIME
) Objects's Last Modified Date
Note: this step will naturally overlap with existing object check steps. That's okay!