Prerequisites
Please carefully read the following to ensure you can complete the setup:
- You are a System Administrator of your SalesForce instance.
Find your Salesforce subdomain
- Log in to your salesforce account, and view the url of the site you are connected to:
- Paste this URL into the connection flow:
Create an API user
- Go to Administration > Users > Users and click on "New User"
- Fill in the basic contact information
Set the Role to API user
Click Save - Assign the right permission sets to the user. You can base them off of this guide.
Create client credentials
- Log in to your salesforce instance, click the cog in the top right and select "Setup":
- In the left sidebar, go to Platform tools > Apps > App Manager:
- Next, click on "New Connected App":
- Fill in your details under "Connected App Name", "API Name" and "Contact Email" and click on
- "Enable OAuth Settings"
- On the same page, select , "Enable for Device Flow", and enter the "Callback URL" as "https://login.salesforce.com/services/oauth2/success".
Select the "Manage user data via APIs (api)" - Make sure that the "Manage user data via APIs (api)" permission is part of Selected OAuth Scopes
- Further below, select the following settings
- Hit "Save" at the very bottom of the page
- Now go to "Apps > Connected Apps > Manage Connected Apps" and click on "Edit"
- Go to "Client Credentials Flow" and click on the Search icon
- Then, select the user you created earlier
- Hit "Save"
- Go back to the "App Manager" (see how to get there in step 2.)
- Find your app and click on "View"
- Click on "Manage Consumer Details"
- Copy the Consumer Key and Consumer Secret