> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Salesforce source for ELT & CDC

> The Salesforce connector lets you move data between Salesforce and the rest of your stack using Integrate.io’s low-code ELT and CDC platform.

The Salesforce connector lets you move data between Salesforce and the rest of your stack using [Integrate.io](http://integrate.io/)’s low-code ELT and CDC platform. You can read standard and custom objects from Salesforce Sales Cloud and write back cleaned, enriched data using the Salesforce Bulk API.

Leverage these easy-to-use Salesforce connectors for data replication to power analytics, reverse ETL into Salesforce, operational reporting, and near real-time syncs into your warehouses and databases. The Integrate.io Salesforce connector supports scalable Salesforce real-time sync, Salesforce CDC, and automated data pipelines for cloud and on-prem destinations.

## Setup guide

Follow this guide to connect Salesforce to Integrate.io.

### Prerequisites

To connect Salesforce, you need:

* A Salesforce Enterprise, Unlimited, Performance, or Developer Edition account, or a Professional Edition account with the Salesforce Web Services API add-on enabled. Salesforce Essentials does not support API access.
* A Salesforce user with the API Enabled permission and read access to the objects and fields you want to sync. We recommend using a dedicated integration user.
* Permission to authorize Integrate.io's Salesforce application. If the application is not installed in your Salesforce organization, the authorizing user may need the Approve Uninstalled Connected Apps permission.
* If your organization enforces login IP restrictions, access to add the Integrate.io IP addresses for your deployment region to the appropriate Salesforce whitelist. See [the IP List](https://www.integrate.io/docs/cdc/ip-list.md).

> [!NOTE]
>
> **Note:** Salesforce allows up to five OAuth approvals per user for the same connected app. Authorizing a sixth Integrate.io connection with the same Salesforce user revokes the oldest authorization. Use a dedicated integration user, and additional users if necessary, when you need more than five concurrent connections.

### Supported authentication method

Integrate.io's default Salesforce connection uses OAuth 2.0. You authorize Integrate.io from your Salesforce account without sharing your Salesforce password with Integrate.io or manually creating a connected app.

### Setup instructions

#### Step 1: Prepare the Salesforce user

1. Log in to Salesforce as an administrator.
2. Go to Setup and open the profile or permission set assigned to the integration user.
3. Enable the API Enabled system permission.
4. Grant read access to the Salesforce objects and fields you want Integrate.io to sync.
5. Assign the profile or permission set to the integration user.

We recommend using a dedicated Salesforce integration user instead of an individual employee's account. This reduces the risk of a pipeline losing access when a user leaves, changes roles, resets credentials, or has permissions modified.

#### Step 2: Allow access to Integrate.io's Salesforce application

If Integrate.io's Salesforce application is not installed in your organization, Salesforce may require the authorizing user to have the Approve Uninstalled Connected Apps permission.

To grant this permission:

1. From Salesforce Setup, enter Permission Sets in the Quick Find box.
2. Open an existing permission set or create a new one.
3. Open System Permissions and click Edit.
4. Enable Approve Uninstalled Connected Apps.
5. Save the permission set.
6. Click Manage Assignments and assign it to the user who will authorize Integrate.io.

> [!NOTE]
>
> **Security note:** This is a powerful permission that should only be assigned to a trusted administrator or integration user. After the Integrate.io connection has been authorized successfully, you can remove the permission if it is no longer required.

If Salesforce reports that the application is blocked, review it under Setup > Connected Apps OAuth Usage and approve or unblock it according to your organization's security policy.

#### Step 3: Whitelist Integrate.io IP addresses, if required

Complete this step if your Salesforce organization enforces IP restrictions.

1. Find the Integrate.io IP addresses for your deployment region on the [IP List page](https://www.integrate.io/docs/cdc/ip-list.md).
2. Add the required addresses in Salesforce:
   * For organization-wide trusted IP ranges, go to Setup > Security > Network Access.
   * For enforced restrictions on the integration user's profile, go to Setup > Profiles, select the profile, and open Login IP Ranges.
3. Enter each address as the start and end of its allowed range, as appropriate.
4. Save your changes.

Organization-wide Network Access ranges identify trusted addresses and can prevent additional identity-verification challenges. Profile-level Login IP Ranges are stricter: Salesforce denies access from addresses outside the configured ranges.

Skip this step if your Salesforce organization does not enforce IP restrictions.

#### Advanced: Restrict access to specific objects and fields

To apply least-privilege access before connecting:

1. Create or select a profile or permission set for the Integrate.io integration user.
2. Enable API Enabled.
3. Grant read access only to the standard and custom objects you intend to sync.
4. Grant field-level visibility only to the fields required by the pipeline.
5. Assign the profile or permission set to the dedicated integration user.

Integrate.io can access only the records, objects, and fields available to the Salesforce user who authorizes the connection. Salesforce sharing rules and record-level access also apply.

You can further limit the replicated data by selecting only the required objects and fields when configuring the source or pipeline in Integrate.io.

#### Step 4: Authorize Salesforce in Integrate.io

1. In Integrate.io, add Salesforce as a source.
2. Select the appropriate Salesforce environment, such as production or sandbox, if prompted.
3. Start the Salesforce authorization process.
4. Sign in using the dedicated Salesforce integration user.
5. Review the requested access and click Allow.
6. Return to Integrate.io and name or save the Salesforce source as prompted.

Integrate.io uses the authorization granted to this Salesforce user. If the user's object, field, sharing, or API permissions change later, the data available to the pipeline can also change.

#### Step 5: Configure the pipeline

1. Select the Salesforce objects and fields to replicate. Review the [Connector reference](#connector-reference) for supported objects, unsupported objects, and field limitations.
2. Select the appropriate synchronization method when the pipeline presents that option:
   * REST API is best suited to smaller data volumes and supports compound fields.
   * Bulk API is optimized for larger volumes. Some objects and compound fields are not supported, and Salesforce limits Bulk API requests to 10,000 calls per day. A lower sync frequency is recommended.
   * Streaming API provides continuous processing for supported objects and has different field and delete-handling limitations.
3. Choose the replication behavior:
   * Full Sync replicates all available data from the object whenever the pipeline runs.
   * Incremental Sync performs a full initial sync and then bookmarks the latest record using an available field such as SystemModstamp, LastModifiedDate, CreatedDate, or LoginTime.
4. Review the [Connector reference](#connector-reference) for REST, Bulk, and Streaming API delete behavior.

> [!NOTE]
>
> **Note:** Some Salesforce objects require Full Sync and cannot use Incremental Sync. See Objects requiring Full Sync in the [Connector reference](#connector-reference) below.

#### Step 6: Test and save the connection

Use the connection test provided by Integrate.io, if available, to verify that Integrate.io can authenticate with and reach your Salesforce organization.

A successful connection test confirms the connection's credentials and basic accessibility. It does not guarantee that every Salesforce object or field is supported or available to the integration user.

If the test fails, check that:

* The Salesforce edition has API access.
* The integration user has the API Enabled permission.
* Integrate.io's Salesforce application is approved and not blocked.
* The required Integrate.io IP addresses are allowed.
* The integration user can access the required Salesforce objects and fields.

After the connection succeeds, save the source and finish configuring the pipeline. The first pipeline run performs the initial synchronization.

## Connector reference

| | |
| :- | :- |
| **Description** | Extracts data from a [Salesforce](https://www.salesforce.com) database. |
| **Link** | [REST API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_what_is_rest_api.htm), [Bulk API](https://developer.salesforce.com/docs/atlas.en-us.api_asynch.meta/api_asynch/asynch_api_intro.htm) |
| **Supported Replication** | Initial/ Full Sync, Continuous/Incremental Sync |
| **Authentication Type** | OAuth |
| **Collection** | **Supported objects for Streaming API:**  • Account  • Campaign  • Case  • Contact  • ContractLineItem  • Entitlement  • Lead  • LiveChatTranscript  • MessagingSession  • Opportunity  • Quote  • QuoteLineItem  • ServiceAppointment  • ServiceContract  • Task  • UserServicePresence  • WorkOrder  • WorkOrderLineItem  • all custom objects |
| | **Unsupported fields for Streaming API:**   • textarea |
| | **Unsupported objects:**  • AccountUserTerritory2View  • ActivityHistory  • AggregateResult  • Announcement  • ApexTypeImplementor  • AppTabMember  • AttachedContentDocument  • AttachedContentNote  • Attachment  • CollaborationGroupRecord  • ColorDefinition  • CombinedAttachment  • ContentBody  • ContentDocumentLink  • ContentFolderItem  • ContentFolderMember  • DatacloudAddress  • DataStatistics  • DataType  • EmailStatus  • EntityParticle  • FeedLike  • FeedSignal  • FeedTrackedChange  • FieldDefinition  • FieldHistoryArchive  • FlexQueueItem  • FlowTestView  • FlowVariableView  • FlowVersionView  • FolderedContentDocument  • IconDefinition  • IdeaComment  • ListViewChartInstance  • LookedUpFromActivity  • Name  • NetworkUserHistoryRecent  • NoteAndAttachment  • OpenActivity  • OutgoingEmail  • OutgoingEmailRelation  • OwnedContentDocument  • OwnerChangeOptionInfo  • PicklistValueInfo  • PlatformAction  • ProcessInstanceHistory  • QuoteTemplateRichTextData  • RecordActionHistory  • RelatedListColumnDefinition  • RelatedListDefinition  • RelationshipDomain  • RelationshipInfo  • SearchLayout  • SiteDetail  • UserEntityAccess  • UserFieldAccess  • UserRecordAccess  • Vote  • Objects ending in “\_\_ChangeEvent”  • Objects ending in “\_\_Tag” |
| | **Unsupported objects by BULK API:**   • AcceptedEventRelation   • AssetTokenEvent   • AttachedContentNote   • CaseStatus   • ContractStatus   • DeclinedEventRelation   • EntityDefinition   • EventWhoRelation   • FieldSecurityClassification   • KnowledgeArticle   • OrderStatus   • PartnerRole   • QuoteTemplateRichTextData   • RecentlyViewed   • SolutionStatus   • TaskPriority   • TaskStatus   • TaskWhoRelation   • UndecidedEventRelation   • WorkOrderLineItemStatus   • WorkOrderStatus   + Objects ending in “\_\_Share” |
| | **Unsupported fields by BULK API:**  • Columns of type (Compound fields):  • address  • location  • base64  • base64binary  • json |
| | **Unsupported fields**: Formula fields are not supported by the connector. |
| | **Objects requiring Full Sync:**   • ActivityFieldHistory    • ApiEvent    • BackgroundOperationResult    • LightningUriEvent    • ListViewEvent    • LoginAsEvent    • LoginEvent    • LogoutEvent    • ReportEvent    • UriEvent |
| **Notes** | **Differences between REST and BULK:**   **BULK**:   The Bulk API is optimized to work with large volumes of data. Some collections and compound fields are not supported on Bulk API.  The requests are limited to 10,000 calls per day, which is why a low sync frequency is recommended when using this API.  This option uses both REST API and Bulk API quota.   **REST**:   The REST API is best when working with small volumes of data.  Compound fields are supported by the REST API. The request limits are calculated by your account type. This option uses REST API quota.   **Full Sync vs Incremental Sync**   Full Sync will replicate all the available data from a table every time a pipeline runs. Incremental Sync will first replicate all the existing data from a table on the first pipeline run, for subsequent pipeline runs, the pipeline will keep a bookmark of the latest record by one of the following fields: SystemModstamp, LastModifiedDate, CreatedDate, LoginTime, and fetch data.   **Deleted Records Handling**  **\* BULK/REST API Sync:**  - **Default behavior:** All available data, including deleted records, will be synced. Deletions are handled as soft deletes. A specific column will indicate if a row was deleted on the source.  - **Custom Configuration:** If you prefer to exclude deleted records from syncing, please contact support to adjust this setting.  - **Soft-Deletes vs Hard-Deletes on Source:**  - **Soft Deletes:** Will be replicated as Soft Deletes on destination, with the IsDeleted column being changed.  - **Hard Deletes:** Not supported by the REST/BULK connector. This operation will not be replicated on the destination.  **\* Streaming API Sync:**  - **Delete handling:** On initial sync, deleted records will be replicated, however, in continuous sync, deletes will result in a hard delete at the destination. The entire row will be erased, ensuring the destination matches the source.  - **Soft-Deletes vs Hard-Deletes on Source:**  - **Soft Deletes:** Will be replicated as Hard Deletes on destination, with the entire row being deleted on the destination.  - **Hard Deletes:** Will be replicated as Hard Deletes on destination, with the entire row being deleted on the destination. |

## Lookback window

Salesforce can commit a record with a timestamp that is earlier than the moment the record becomes visible through the API. When this happens, an incremental sync that has already moved past that timestamp skips the record. The lookback window re-reads a period of time behind the incremental sync bookmark to recover these late-committed records.

The lookback window is off by default. You can choose one of the following windows:

| Option | Behavior |
| :- | :- |
| Off | No lookback. Incremental sync reads only from the current bookmark. |
| 30 minutes | Re-reads the last 30 minutes on every sync. |
| 1 day | Re-reads the last day once every 24 hours. |
| 7 days | Re-reads the last 7 days once every 24 hours. |
| 14 days | Re-reads the last 14 days once every 24 hours. |
| 28 days | Re-reads the last 28 days once every 24 hours. |

### How it works

* The lookback applies only to objects that use incremental sync over the REST or Bulk API. Objects synced through the Streaming API resume from a replay ID rather than a timestamp, so the lookback does not apply to them. Full Sync objects re-read all data on every run and do not need a lookback.
* Windows shorter than one day shift the bookmark back on every sync. Windows of one day or more run once per 24 hours per object.
* The lookback never reads earlier than the pipeline's configured start date.

### Configuration

Set the **Salesforce Lookback Window** in the sync settings step when creating a pipeline, or on the Settings tab of an existing pipeline. You configure the setting per pipeline.

The lookback window is available on request. Contact [support@integrate.io](mailto:support@integrate.io) to enable it for your account.

> [!NOTE]
>
> Re-read records add to the rows your pipeline syncs, which count toward your usage. Larger windows increase the number of rows synced.

## Related

> [card] [IP List](https://www.integrate.io/docs/cdc/ip-list.md)

> [card] [Hooks](https://www.integrate.io/docs/cdc/hooks.md)

> [card] [What is ELT & CDC](https://www.integrate.io/docs/cdc/what-is-integrateio-cdc.md)

> [card] [Initial Sync Process](https://www.integrate.io/docs/cdc/initial-sync-process.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.