Salesforce Source Connector
The Salesforce source connector lets DataSync retrieve data from Salesforce and load it into your data warehouse. Setting up the connector takes two steps that work together. First, you create a external client app in Salesforce that gives DataSync permission to access your data. Then, you create a source connection in DataSync using the credentials from that app. The two configurations need to reference each other, so it helps to keep both Salesforce and DataSync open side by side while you work.
Once your source connection is ready, configure your destination connection to finish the setup.
Step 1: Configure a external client app in Salesforce
Create an external client app
- Log in to Salesforce.
- Select the gear icon at the top right, then Setup.
- Under Platform Tools, expand Apps, then select App Manager.
- Select New External Client App in the upper-right corner.
- Fill in all mandatory fields under Basic Information.
- Under API (Enable OAuth Settings), check Enable OAuth.
- In Callback URL, paste the callback URL shown in the connection properties in DataSync.
- In Available OAuth Scopes, select the scopes your team needs for data access and move them to Selected OAuth Scopes using the arrow. The scopes vary depending on your Salesforce setup and what data you want to access.
- Deselect Require Proof Key for Code Exchange (PKCE).
- Select Create.
Retrieve your app credentials
- Under Platform Tools, expand Apps.
- Expand External Client Apps and select OAuth Usage.
- Select your app.
- Open the Settings tab, then expand OAuth Settings.
- Select Consumer Key and Secret.
- Copy the Consumer Key (this is your Client ID in DataSync) and the Consumer Secret (this is your Client Secret). You'll need both in the next step.
Step 2: Create the source connection in DataSync
- Log in to DataSync.
- From the welcome screen, select Connections.
- Next to Source Connections, select New.
- Select Salesforce.
- Enter all the required connection properties.
- (Optional) In the Additional Connection Properties panel, select Add property and enter the parameters you need.
- Configure the advanced settings that match your environment, including Tracking Type.
- Wait 2 to 10 minutes to before saving so Salesforce fully register the new app.
- Select Save.
Salesforce needs 2 to 10 minutes to fully register the new app. If you create the DataSync connection too soon, you'll see an invalid_client_id error. If so, edit the connection and select Authenticate and Save, then Allow to complete the setup.
Parameters
Connection properties
| Property | Description |
|---|---|
| Description | Unique name for the connection. Example: Salesforce. |
| Callback URL | Redirect URL automatically generated by DataSync. Paste it into your external client app in Salesforce. |
| Client ID | The Consumer Key from your external client app in Salesforce. Example: 3MVG9k02hQhyUgQDmCknDvKr8oP35RkPV6Uc4j7vP9KQH8bM2NwL1JpYz853vQrc2bN1aD6yR5tK9pE4mW0fG. |
| Client Secret | The Consumer Secret from your external client app in Salesforce. Example: 7B6F9C8F2E1A5BZC9D0E3F4A7B6C7D8E9F0G1B2C3D4E5FEA7B8C9D0E1F293B4C. |
| Verbosity | Controls how much detail the connector writes to the log. Each level includes everything from the level below, plus extra detail.
|
| Enable Pooling | Turns on connection pooling for better performance. |
| Pool idle timeout | Maximum idle time, in seconds, before a connection returns to the pool. |
| Max Pool Size | Maximum number of connections allowed in the pool. |
| Pool wait time | Maximum wait time, in seconds, for a connection before an error is thrown. |
Additional connection properties
Use this panel to enter connection string properties that are not available in the Connection Properties panel. For each property, select Visible or Encrypted. Use Encrypted for sensitive values such as passwords. The value is hidden in the interface and stored encrypted in the back end.
| Property | Description |
|---|---|
| Property | Connection string property that defines the action or behavior. Example, ReadOnly |
| Value | Value for the property. Example, True |
| Type | Visibility of the property: Visible or Encrypted. |
Advanced settings
These settings control how the Salesforce connector tracks data changes, handles time and regional configuration, and processes records during extraction. Configure them to match your system environment to get accurate and consistent results.
| Setting | Description |
|---|---|
| Tracking Type | Method for tracking changes: None or Date. |
| Region | Region setting for the connector, if required by your setup. |
| Time Zone | Time zone matching your Salesforce environment. |
| Time Offset | Refresh offset in seconds to compensate for timing issues in record selection. Minimum 0, maximum 3600. |
| Batch Size | Number of records processed in each batch during extraction. Larger batches use more memory but can improve performance. The default is 2000 and the maximum is 10000. Adjust based on your network speed and disk performance. In most cases, the default works best. |
Example setup

Update the callback URL on an existing app
If your app is already set up and you just need to change the callback URL:
- Log in to Salesforce.
- Select the gear icon at the top right, then Setup.
- Under Platform Tools, expand Apps, then External Client Apps.
- Select OAuth Usage.
- Choose your app, then open the Settings tab.
- Select Edit in the top-right corner.
- Update the Callback URL.
- Select Save.