A startup for salesforce server-to-server integration using OAuth2.0 JWT Bearer Flow.
Two queries are written in the code to represent the integration flow.
- Fetch all ProductItems
- Find stock/quantity of a single ProductItem
- Setup a connected app in your salesforce org using this method here.
- Setup some ProductItems in your salesforce org.
- Set the environment variables given in
src/ConnectAppClient.js
file for your org. - Deploy the app to the hosting service you have.
- Queries will start fetching data from your org.
- For demonstration use the below section of the web page.
- You can extend the code for your usecase easily.
- jsforce Client for salesforce connected app operations.
- sf-jwt-token An implementation of Salesforce OAuth 2.0 JWT bearer token flow.