Setting up a Salesforce Connection
Salesforce is a leading CRM platform used to manage accounts, opportunities, leads, and customer interactions. Nexadata integrates directly with Salesforce in both directions: you can read objects and reports into Nexadata datasets, transform and harmonize them with your finance and planning data, and write the results back to Salesforce objects.
Here are the key features:
-
Two ways to read: Query any standard or custom object with SOQL, or pull the rows of a Salesforce Report.
-
Write-back to Salesforce objects: Send Workflow outputs to Salesforce with Insert, Update, Upsert, or Delete.
-
Real-time and high-volume modes: Use the REST API for smaller, faster jobs, or Bulk API 2.0 for large ones.
-
Your own External Client App: Nexadata connects through an app that your Salesforce admin creates and controls in your org, using OAuth 2.0 with PKCE. No passwords are stored in Nexadata.
-
Automatic token refresh: Once connected, Nexadata renews its access on its own, for as long as your org’s refresh token policy allows.
This article covers the setup in three parts. Parts 1 and 2 are usually completed with your Salesforce admin. Part 3 takes place in Nexadata.
Part 1: Understand How Nexadata Connects
Section titled “Part 1: Understand How Nexadata Connects”Nexadata connects to Salesforce through an External Client App. An External Client App is an entry that a Salesforce admin creates in your org to tell Salesforce that Nexadata is allowed to ask users for access. It is the newer replacement for a Connected App.
When you click Connect to Salesforce in Nexadata, you sign in to Salesforce yourself and approve the request. Nexadata then acts as you, with your Salesforce permissions, and every record it reads or writes is subject to your profile, permission sets, and sharing rules. Salesforce records the changes under your name.
Nexadata requests three OAuth scopes:
| Scope | Shown in Salesforce as | Why Nexadata needs it |
|---|---|---|
api | Manage user data via APIs | Read objects and reports, and write records back. |
refresh_token | Perform requests at any time | Renew access without asking you to sign in again. |
offline_access | Perform requests at any time | Keep working when Workflows run on a schedule. |
Part 2: Prepare Salesforce
Section titled “Part 2: Prepare Salesforce”These steps require a Salesforce admin.
Step 1: Check the Signing-In User’s Permissions
Section titled “Step 1: Check the Signing-In User’s Permissions”These are the minimum permissions Nexadata needs to use every Salesforce capability. Grant them to the signing-in user through a custom profile or a permission set. Nothing else is required.
| Permission | Where to find it | What it enables |
|---|---|---|
| API Enabled | Administrative Permissions, or System Permissions in the enhanced view | Every connection, read, and write. Without it, Salesforce refuses the connection. |
| Run Reports | General User Permissions, or System Permissions in the enhanced view | Listing and reading Salesforce Reports. |
| Object Read | Standard Object Permissions and Custom Object Permissions, or Object Settings in the enhanced view | SOQL datasets on that object. |
| Object Create | Same as above | Insert and Upsert outputs. |
| Object Edit | Same as above | Update and Upsert outputs. |
| Object Delete | Same as above | Delete outputs. Salesforce requires Read and Edit along with it. |
| Field Read Access and Edit Access | Field-Level Security on each object | Read Access for each field a dataset reads, and Edit Access for each field an output writes. |
Grant object and field access only for the objects your Workflows use, and only the levels they need. For example, a login that only reads needs API Enabled, Run Reports, and Read.
The user also needs to see the records and reports involved. Sharing rules decide which records Nexadata can read or change, and the user needs View access to the folders of any report you read.
To check API Enabled, open Setup, enter Profiles in the Quick Find box, and click the user’s profile. Scroll to Administrative Permissions, or click System Permissions if your org uses the enhanced profile view.

If the user gets these permissions from a permission set rather than the profile, check them in Setup → Permission Sets instead.
Step 2: Create an External Client App
Section titled “Step 2: Create an External Client App”-
In Salesforce, click the gear icon, then Setup. In the Quick Find box, enter
External Client App Managerand open it. -
Click New External Client App.
-
Under Basic Information, enter an External Client App Name, for example
Nexadata, and a Contact Email. Salesforce fills in the API Name for you. Leave Distribution State set to Local.Optionally, add a Description so other admins know what the app is for, for example: Allows Nexadata to read Salesforce objects and reports and write Workflow results back to Salesforce on behalf of the signed-in user.
-
Expand API (Enable OAuth Settings) and check Enable OAuth. Then fill in:
-
Callback URL: Enter the Nexadata callback URL exactly as shown:
https://app.nexadata.com/salesforce/oauth/callbackIf the URL does not match exactly, Salesforce rejects the sign-in. Copy the URL above rather than typing it. Nexadata also shows it on the connection form.
-
OAuth Scopes: Under Available OAuth Scopes, select Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access), and click the right arrow to move them to Selected OAuth Scopes. Nexadata needs only these two.
-
Flow Enablement: Leave every option unchecked. Nexadata uses the standard web sign-in, which needs none of them.
-
Security: Leave Require secret for Web Server Flow checked. Require Proof Key for Code Exchange (PKCE) extension for Supported Authorization Flows is checked and locked, and Nexadata supports it. Leave the other security options as they are.
-
-
Scroll to the bottom and click Create.

Step 3: Set the App’s Policies
Section titled “Step 3: Set the App’s Policies”-
On the new app’s page, open the Policies tab and expand OAuth Policies.
-
Under Plugin Policies, leave Permitted Users set to All users can self-authorize. To limit who can connect, choose Admin approved users are pre-authorized instead, then add the signing-in user’s profile or permission set to the app.
-
Under App Authorization, leave the Refresh Token Policy set to Expire refresh token if not used for specific time, with a Refresh Token Validity Period of
30Day(s). Nexadata keeps the connection authorized as long as it is used at least once in that period, so scheduled Workflows keep running without anyone signing in again. Do not choose Immediately expire refresh token, which forces a new sign-in every time. -
Set IP Relaxation to Relax IP restrictions. Nexadata connects from its own servers rather than from your network, so login IP ranges on the signing-in user’s profile would otherwise block it.
-
Click Save.

Step 4: Copy the Consumer Key and Secret
Section titled “Step 4: Copy the Consumer Key and Secret”-
Open the Settings tab. Under OAuth Settings, in App Settings, click Consumer Key and Secret.

-
A new tab opens. Salesforce may ask you to verify your identity with a code sent by email.
-
On the Consumer Details page, copy the Consumer Key and Consumer Secret. You will enter them in Nexadata in Part 3.
Step 5: Find Your My Domain URL (Recommended)
Section titled “Step 5: Find Your My Domain URL (Recommended)”Your org’s My Domain URL sends the Nexadata sign-in straight to your org. It is required if your org blocks sign-ins from login.salesforce.com, and it is the most reliable way to connect a sandbox.
In Setup, enter My Domain in the Quick Find box and open My Domain. Copy the URL under Current My Domain URL, for example https://acme.my.salesforce.com or, for a sandbox, https://acme--uat.sandbox.my.salesforce.com.
Part 3: Create the Connection in Nexadata
Section titled “Part 3: Create the Connection in Nexadata”Step 1: Add a Connection
Section titled “Step 1: Add a Connection”-
Go to Setup → Connections and click Create Connection, or click New Connection in the Quick Actions panel on the home screen.
-
Enter a unique Name for the connection, for example
Salesforce Production. -
Select Salesforce as the Connection Type.
Step 2: Enter the External Client App Details
Section titled “Step 2: Enter the External Client App Details”-
Leave Auth type set to Customer Managed, which means Nexadata signs in through the External Client App in your own org.
-
Enter the Consumer key and Consumer secret you copied in Part 2. Nexadata hides both as you type.
-
Enter your My Domain URL, if you found it in Part 2, Step 5. It must be an
https://address ending in.my.salesforce.com. If you enter a.lightning.force.comaddress, Nexadata shows must be a .my.salesforce.com domain. -
Choose the Salesforce Environment: Production for your live org, or Sandbox for a sandbox. When a My Domain URL is entered, Nexadata uses it instead and the environment is ignored.
-
Check that the callback URL shown under Add this callback URL to your External Client App matches the Callback URL in your External Client App.

Step 3: Connect to Salesforce
Section titled “Step 3: Connect to Salesforce”-
Click Connect to Salesforce. A new browser tab opens on the Salesforce sign-in page.
-
Sign in with the Salesforce user that Nexadata should act as. The first time this user connects, Salesforce asks them to approve the requested access. Click Allow. If you are already signed in to Salesforce and have approved the app before, Salesforce skips both screens.
-
When the tab shows SUCCESS! You may now close this window and navigate back to Nexadata., close it and return to Nexadata. A Salesforce connection successful message appears.

Step 4: Choose an API Version, Verify, and Submit
Section titled “Step 4: Choose an API Version, Verify, and Submit”-
After you connect, an API Version field appears, set to the newest version your org supports, and your org’s URL appears above the buttons. Leave the newest version selected unless you have a reason to pin an older one.
-
Click Verify Credentials. A green shield with a check mark appears beside Submit when Nexadata can reach your org.
-
Click Submit to save the connection.

Your Salesforce connection is ready to use in datasets and Workflow outputs. Continue with Using a Salesforce Connection.
Keeping the Connection Authorized
Section titled “Keeping the Connection Authorized”Nexadata refreshes its access automatically. You need to sign in again only when Salesforce stops accepting the refresh token, for example when:
-
The refresh token reaches the expiry set in the app’s Refresh Token Policy.
-
The connection goes unused for 30 days, which expires it under the app’s idle refresh token limit.
-
An admin revokes the connection in Salesforce, or the signing-in user is deactivated or changes their password under a policy that revokes tokens.
-
You change the Consumer Key or Consumer Secret on the connection.
When that happens, the connection form shows a message and a Re-authorize with Salesforce button. Click it, sign in again, and click Submit. Datasets and outputs that use the connection keep their settings.
Troubleshooting Tips
Section titled “Troubleshooting Tips”-
The sign-in page shows “redirect_uri_mismatch”. The Callback URL in the External Client App does not exactly match
https://app.nexadata.com/salesforce/oauth/callback. Correct it, wait a few minutes, and connect again. -
“Invalid OAuth state. Please try connecting to Salesforce again.” The sign-in took longer than 15 minutes, or was started from an older tab. Click Connect to Salesforce again.
-
A sandbox connection fails at sign-in. Enter the sandbox’s My Domain URL and connect again.
-
“must be a .my.salesforce.com domain” under My Domain URL. You entered the address from your browser, which ends in
.lightning.force.com. Change.lightning.force.comto.my.salesforce.com, or copy the URL from Setup → My Domain. See Part 2, Step 5. -
Connect to Salesforce is grayed out. Enter the Consumer Key, and check that any My Domain URL is an
https://...my.salesforce.comaddress.
For more, see Troubleshooting the Salesforce Connector.