Skip to content
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.

Latest commit

 

History

History

03_Context_SalesforceSDK_JS

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

salesforcesdkjs Function

Receives a payload containing account details, and creates the record. It then uses a SOQL query to return the newly created Account.

Local Development

  1. Install dependencies with
npm install
  1. Run tests with
npm test
  1. Start your function locally
sf run function start --verbose
  1. Invoke your function locally with a valid payload
sf run function --function-url=http://localhost:8080 --payload=@data/sample-payload.json
  1. Invoke your function locally with an invalid payload
sf run function --function-url=http://localhost:8080 --payload=@data/sample-invalid-payload.json