PermuteDocs
Go to Permute

Connector guide

Connect Salesforce to Permute

Connect Salesforce CRM.

Set the app’s Run As user.

Client Credentials Flow cannot connect without the read-access integration user.

Before you start

  • A Salesforce integration user with read access to the objects you want to sync.

1. Copy the My Domain URL

In Salesforce Setup, find My Domain and copy the Current My Domain URL.

2. Create an External Client App

Open External Client App Manager → New External Client App.

In Salesforce Setup, open External Client App Manager and create an app for Permute. Enable OAuth, the api scope, and Client Credentials Flow. That flow lets the app request access without an interactive user sign-in during each sync.

Use your Salesforce My Domain URL in Permute. Keep the Consumer Key and Consumer Secret from this same app together.

Salesforce client credentials setup

3. Enable OAuth client credentials

Enable OAuth, add the api scope, and enable Client Credentials Flow.

4. Set the Run As user

On the app’s Policies tab, set Run As to the read-access integration user.

Salesforce requires an integration user for Client Credentials Flow. Set that user on the app’s Policies tab under Run As. Give the user read access to the objects Permute should sync.

Without Run As, the connection cannot use this flow. If only some objects are absent, check the integration user’s Salesforce permissions before changing app credentials.

Salesforce client credentials setup

5. Copy the Consumer Key and Secret

Under Settings → OAuth Settings, copy the Consumer Key and Consumer Secret.

6. Add Salesforce in Permute

In your workspace, open Connectors, select Add Connector, choose Salesforce, and name the account.

Under Sync which data?, choose an option:

ChoiceWhat it does
RecommendedSelects core tables.
Select manuallyChoose the tables Permute syncs after connecting.

Connection details

Field or accessWhat to use
My Domain URLCopy Current My Domain URL from Salesforce Setup.
Consumer Key and SecretCopy both from the same External Client App.
Run As userSet on the app’s Policies tab.
  1. Enter My Domain URL, Consumer Key, and Consumer Secret in Permute.
  2. Select Connect.

7. Choose tables (manual selection)

If you chose Select manually, open the connector after connecting. Use the checkboxes to select at least one table, then select Save selection.

8. Check the first result

  1. Choose a Salesforce record the Run As integration user can read.
  2. Check the app’s api scope and Client Credentials Flow if the connection fails.

Understand the source

Salesforce source records

Provider termMeaning
ObjectA record type, such as Account or Contact.
RecordOne entry in an object, identified by its Salesforce ID.
FieldA value on the record; field-level security can hide it from a user.

Salesforce record fields

Access and source details

Keep app credentials private

The Consumer Key identifies the External Client App, and its Consumer Secret authenticates it. Copy both from that app’s OAuth Settings into Permute. If the secret is changed or compromised, copy the new value from Salesforce.

A newly created Consumer Key may need a few minutes before Salesforce accepts it, as the Permute setup screen notes.

Salesforce client credentials setup

Troubleshooting

ProblemWhat to check
Connection failsCheck the domain, api scope, Client Credentials Flow, and Run As user.
A new key fails at firstWait a few minutes for activation, then retry.

References