- Create a
Connected App
in salesforce to get theConsumer Key
andConsumer Secret
. - Ensure that the Permitted Users setting indicate
All users may self-authorize
. - Make sure you also have your salesforce username, password and security token. Reset the security token if you lost it.
- Provide the info in the .env file
CONSUMER_KEY =
CONSUMER_SECRET =
SALESFORCE_USERNAME =
SALESFORCE_PASSWORD =
SALESFORCE_SECURITY_TOKEN =
- Run
node app.js
- The goal of this project is to create a basic implementation of
nforce
using modern javascript while utilising concepts like promises, async/await.