run-crank/cog-salesforce

New Step: Update a Salesforce Object

Closed this issue · 0 comments

As a Crank user, I should be able to update any Salesforce Object via step

Proposed Step Name: Update a Salesforce Object
Proposed Step Expression: update a salesforce (?<objName>[a-zA-Z0-9]+) object

Proposed Step Fields:

  • objName: (type STRING) Salesforce object name
  • salesforceObject: (type MAP), where keys represent object field names as represented in the SFDC API

Proposed Step Records:

  • salesforceObject (type KeyValue, named Updated Object), returned on pass. Guaranteed fields should include:
    • Id (type STRING`) Object's Salesforce ID
    • CreatedDate (type DATETIME) Object's Created Date
    • LastModifiedDate (type DATETIME) Object's Last Modified Date