Available on Business and Enterprise plans.
Admin: Setup in Salesforce
Create an External Client App in Salesforce
Go to Salesforce Setup (gear icon in the top right corner). In the search bar on the left sidebar, search for “External Client App Manager” and click New External Client App. Fill in basic information- External Client App Name: “Dust Integration”.
- API Name: will auto-populate.
- Contact Email: your email.
- Distribution State: keep default value “Local”.
- Check the “Enable OAuth” box.
- Access the identity URL service (id, profile, email, address, phone)
- Manage user data via APIs (api)
- Perform requests at any time (refresh_token, offline_access)
- Access custom permissions (custom_permissions)
- Enable Client Credentials Flow
- Enable Authorization Code and Credentials Flow
- Require secret for Web Server Flow
- Require secret for Refresh Token Flow
- Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows
Get your credentials
- Click on the Settings tab and then the Edit button.
- Open the OAuth Settings dropdown menu.
- Click on Consumer Key and Secret and copy those for the Setup in Dust.
Admin: Setup in Dust
Go to Spaces > Tools in your Dust workspace, click Add Tools, and select Salesforce. Fill in your Salesforce Instance URL and the Client ID & Secret generated from your External App. Then choose the Credentials Type:- Personal means that each user using the Salesforce tool will be required to log in to Salesforce first. We will use the user credential to execute the queries, meaning permissions defined on Salesforce are respected.
- Workspace means we will use the credentials of the admin setting up the tool for all queries (meaning all users share their permissions when executing queries on Salesforce).