Salesforce
This guide will take you through the steps to connecting Salesforce to Catalog.
A Salesforce System Administrator must complete these steps.
Create a Catalog User (Optional)
We recommend creating a user and assigning them to Catalog app in order to keep a clear audit trail in Salesforce.
- From Setup, in Quick Find, search for Users > Users.
- Click New User.
- For the User License choose Salesforce.
- Set the profile to Standard User.
- Fill in the rest of the information based on your company's administration rules.
Create External Client App
- From Setup, in Quick Find, search for External Client Apps > External Client App Manager.
- Click New External Client App.
- In Basic Information, enter the required information. Name the app
CatalogConnector. - In API, check Enable OAuth.
- Callback URL - We don’t use this, so you can enter any domain such as
https://localhost. - OAuth Scopes:
Access Lightning applications (lightning)Manage user data via APIs (api)Perform requests at any time (refresh_token, offline_access)
- Flow Enablement - In the same API section check the following:
Enable Device Flow
- Security - In the same API section check the following:
Require secret for Web Server FlowRequire secret for Refresh Token Flow
- Callback URL - We don’t use this, so you can enter any domain such as
- Other settings can be left at the default.
- Click Create.
Get External App Client ID and Client Secret
- After saving the app, it will take you back to the app page.
- Click on Settings, then OAuth Settings.
- Click Consumer Key and Secret.
- It will open a new window with the Consumer Key and Consumer Secret. Copy these for later.
Set App Permissions
For these next steps, you’ll need to clone a Permission Set.
- From Setup, in Quick Find, search for Users > Permissions Sets.
- Clone any permission set with the license, Salesforce. If the license doesn’t match the user assigned to the app, the connection will fail. In this example, Event Monitoring User was cloned.
- Give your permission set a name and description.
- Under System, click System Permissions. Then click Edit.
- Assign the following permissions:
- Run Reports
- View Dashboards in Public Folders
- View Reports in Public Folders
- Manage All Private Reports and Dashboards
- View Roles and Role Hierarchy
- View Setup and Configuration
- Save.
- On the same Permission Sets page, click Manage Assignments near the top.
- Click Add Assignment.
- Assign the user who should have the permissions to use the Catalog app.
Configure OAuth and OpenID Connect Settings
- From Setup, in Quick Find, search for Identity > OAuth and OpenID Connect Settings.
- Make sure Allow OAuth Username-Password Flows is toggled on.
Get Your Security Token
- Make sure you’re signed in as the user who will be using the Catalog app.
- Click on your profile, then Settings.
- In the Quick Find, search for Reset My Security Token.
- Click Reset Security Token.
- You’ll get an email with the security token.
Get Your Domain and Username
The username is not the same as your email. The username will look like something like this: coalesce.support.a4bb07276aff@agentforce.com.
-
From Setup, in Quick Find, search for Users > Users.
-
Find the user and click on them. Copy the information in Username.
-
From Setup, in Quick Find, search for Company Settings > My Domain.
-
Copy Current My Domain URL.
Connect Catalog and Salesforce
- Go to Settings > Integrations.
- Find and click the Salesforce tile.
- Select Managed By Catalog.
- Give the source a name.
- Enter the credentials and click Save.
{
"baseUrl": "<Your salesforce host>",
"username": "<Your salesforce username address>",
"password": "<Your password used to login>",
"securityToken": "<Your security token from the reset email>",
"clientId": "<The connected app consumer key>",
"clientSecret": "<The connected app consumer secret>"
}
// example
{
"baseUrl": "some-url-628db8712c-dev-ed.develop.my.salesforce.com",
"username": "coalesce.support.a4bb07276aff@agentforce.com",
"password": "myloginpassword",
"securityToken": "Efe3L6BfW95xMn25bsut6lLLBxkHW",
"clientId": "IitzUN13UdTsbHAQVr02NAVpTEMhYyQwJ",
"clientSecret": "ENSGbqHF6QV7zTEfC3Z5VUW08"
}
Troubleshooting
Check IP Restrictions
You might need to adjust your IP settings.
- From Setup, in Quick Find, search for Connected Apps > Manage Connected Apps .
- Click Edit next to the app.
- Review:
- IP Relaxation: Enforce IP restrictions
- Refresh Token Policy: Refresh token is valid until revoked
Need the Client ID and Client Secret
- From Setup, in Quick Find, search for Connected Apps > External Client App Manager .
- Click on the app.
- Click on Settings, then OAuth Settings.
- Click Consumer Key and Secret.
How To Test Your Connection Settings
You can make an API request to check that your credentials are correct.
The request can be done using cURL and should be x-www-form-urlencoded. Using a tool such as Postman or Insomnia makes it easy.
POST
curl --location 'your-domain-url.my.salesforce.com/services/oauth2/token' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'client_id='consumer key' \
--data-urlencode 'client_secret=consumer secret' \
--data-urlencode 'username=coalesce.support.a4bb07276aff@agentforce.com' \
--data-urlencode 'password=this is the login password with the security token as one word. passwordsecruitytoken' \
--data-urlencode 'grant_type=password'
View Login Information
You can also check the login history to see if the connection was successful.
- From Setup, in Quick Find, search for Users > Users.
- Click on the Catalog user.
- Scroll to Login History. You’re looking for the application along with the status message.
Reset Keys
- Reset the Security Key.
- The Consumer Key and Consumer Secret can't be reset. Create a new app.




