Integrating with Salesforce
Connect Salesforce to Drivetrain quickly—no provisioning or support required.
You connect Salesforce yourself by signing in from Drivetrain, then choose which objects and reports to sync.
Before you start
In Drivetrain: an admin role (or a role with the Connect a data source action).
Salesforce edition with API access: Enterprise, Performance, Unlimited or Developer. Professional edition needs Salesforce's API add-on.
A Salesforce user to connect with. Drivetrain syncs only what this user can see, so check its profile or permission set:
API Enabled
Every sync uses the Salesforce API
View Setup and Configuration
Drivetrain reads your org's remaining API quota before syncing
Read on each object you'll sync (at least Accounts, Leads, Opportunities), plus field-level Read on their fields
Hidden objects or fields sync empty
View All Users
Syncs the User object
View All Data, or sharing rules that let the user see the records
A user that owns no records syncs empty tables
Run Reports, and access to the report folders
Only if you sync reports
No create, edit or delete permission is needed: Drivetrain only reads. It requests Salesforce's api and refresh_token OAuth scopes. The api scope allows whatever the user's permissions allow, so a read-only user keeps the connection read-only.

Step 1: Connect Salesforce
Go to the Data page and click the + icon at the top of the Data panel (or Add data source if nothing is connected yet).
Select Salesforce and click Login to connect.
The tab opens the Salesforce login page. Log in as the user above, complete MFA if prompted, and allow access.
You return to Drivetrain, and Salesforce appears in the Data panel. Nothing syncs until you choose data in Step 2.


Step 2: Choose what to sync
Click Add data on the Salesforce connection (or the three dots next to it > Add data). In Import from, choose Objects or Reports.

Objects
Use objects for full, unfiltered tables.
Select Objects, search for the objects you want and move them to Selected. You can pick any standard or custom object the user can see.
Click Add.
Account, Lead, Opportunity and User can't be removed once selected.

Reports
Use a report when you already filter and shape the data in Salesforce.
In Salesforce, open the report and copy its Lightning link:
https://<your-org>.lightning.force.com/lightning/r/Report/<report-id>/view. Salesforce Classic links are rejected.In Drivetrain, select Reports, paste the link in Paste Salesforce report link.
Optional: in Unique column (optional), enter the name of a column that's unique on every row (for example Opportunity ID), as it appears in the report.
Click Add.

Reports over 2,000 rows: Salesforce returns at most 2,000 report rows per request. Drivetrain pages past that with the unique column: the one you entered, or otherwise the report's first ID column. A report with no ID column syncs only its first 2,000 rows. The note in the window still says reports are limited to 2,000 rows.
If a report still stops at 2,000 rows:
Too many filters: Salesforce accepts up to 20 filters when a report is run through its API, and Drivetrain adds one to page. Remove a filter.
Cross filters, standard filters or a row limit block paging through the API. Remove them or sync the object instead.
Unique column: it must be filled on every row.
What data comes in
The objects and reports you choose. Objects sync all their fields.
After the first sync, each sync brings records changed since the last one. On Saturdays, the scheduled sync re-reads all records.
Records you delete in Salesforce come through marked as deleted (Salesforce's IsDeleted field). Records emptied from the recycle bin disappear at the next Saturday re-read.
Salesforce's daily API limit is shared by every tool connected to your org. To leave room for them, a sync stops once your org has used about 95% of its daily quota, or once that sync alone has used 25%. Check usage in Setup > System Overview.
Reconnect, disconnect, more connections
Reconnect (after a password change, or if access was revoked): three dots next to the connection > Edit credentials, then log in again. Not available while a sync is running.
Disconnect: three dots > Remove. This deletes the data synced from it in Drivetrain.
More than one Salesforce org: add another connection. Your subscription may limit how many.
Sandbox orgs: the Salesforce tile signs in to production orgs. A separate Salesforce Sandbox tile offers objects only (no reports); talk to your Drivetrain team before using it.
Troubleshooting
Drivetrain shows sync errors in its own words, so the text may differ slightly from below.
OAUTH_APPROVAL_ERROR_GENERIC, or "app must be installed"
Your org blocks uninstalled connected apps
Install the app or grant the permission (see Step 1)
API_DISABLED_FOR_ORG
Your Salesforce edition has no API access
Upgrade, or buy the API add-on (Professional)
API_CURRENTLY_DISABLED
The user's profile lacks API Enabled
Turn on API Enabled, then Edit credentials
REQUEST_LIMIT_EXCEEDED, or a message that the Salesforce API quota is used up
Your org's daily API quota is (nearly) used up, often by other tools
Wait for quota to free up; to raise the limit, buy API add-ons or licences from Salesforce
A message that the daily API call limit was reached and the sync resumes tomorrow
Drivetrain's own daily call budget for this connection
The sync resumes the next day; ask your Drivetrain team if you need a higher budget
Tables sync empty (often only User has data)
Missing object or field Read, or the user can't see the records
Check the permissions table above
A report fails with a permission error
No Run Reports, or no access to the report's folder
Grant both
Invalid report link. It must contain a report ID
Not a Lightning report link
Copy the link from Lightning Experience
uniqueColumn '<name>' not found in report columns
The unique column doesn't match a report column
Enter the column name exactly as the report shows it
An authentication error after a password change
The stored login no longer works
Edit credentials and log in again
A sync is in progress, please try again once it completes.
You edited credentials during a sync
Wait for the sync to finish
Still stuck? Contact your Drivetrain onboarding partner with a screenshot of the error.
Need to grant temporary access?
Rarely, for example to investigate a data issue, your Drivetrain team may ask for temporary access to your Salesforce org. See Grant temporary access to Salesforce. It isn't needed to connect.
Last updated
Was this helpful?
