Receives a payload containing account details, and creates the record. It then uses a SOQL query to return the newly created Account.
- Install dependencies with
npm install
- Run tests with
npm test
- Start your function locally
sf run function start --verbose
- Invoke your function locally with a valid payload
sf run function --function-url=http://localhost:8080 --payload=@data/sample-payload.json
- Invoke your function locally with an invalid payload
sf run function --function-url=http://localhost:8080 --payload=@data/sample-invalid-payload.json