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_Java

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

salesforcesdkjava 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. Run tests with
./mvnw 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