Salesforce — Real-time data
This connector captures data from Salesforce objects into Flow collections in real time via the Salesforce PushTopic API.
A separate connector is available for syncing historical Salesforce data. For help using both connectors in parallel, contact your Estuary account manager.
This connector is available for use in the Flow web application. For local development or open-source workflows, ghcr.io/estuary/source-salesforce-next:dev
provides the latest version of the connector as a Docker image. You can also follow the link in your browser to see past image versions.
Supported data resources
This connector can capture the following Salesforce standard objects, if present in your account:
- Account
- Contact
- User
- OpportunityFilledHistory
- LeadHistory
- Opportunity
- Campaign
- Case
- ContactLineItem
- Entitlement
- Lead
- LiveChatTranscript
- MessagingSession
- Quote
- QuoteLineItem
- ServiceAppointment
- ServiceContract
- Task
- UserServicePresence
- WorkOrder
- WorkOrderLineItem
Because most Salesforce accounts contain large volumes of data, you may only want to capture a subset of the available objects. There are several ways to control this:
-
Create a dedicated Salesforce user with access only to the objects you'd like to capture.
-
During capture creation in the web application, remove the bindings for objects you don't want to capture.
Prerequisites
Using OAuth2 to authenticate with Salesforce in the Flow web app
If you're using the Flow web app, you'll be prompted to authenticate with Salesforce using OAuth. You'll need the following:
-
A Salesforce organization on the Enterprise tier, or with an equivalent API request allocation.
-
Salesforce user credentials. We recommend creating a dedicated read-only Salesforce user.
Configuring the connector specification manually
If you're working with flowctl and writing specifications in a local development environment, you'll need to manually supply OAuth credentials. You'll need:
-
The items required to set up with OAuth2.
-
A Salesforce developer application with a generated client ID, client secret, and refresh token. See setup steps.
Setup
Create a read-only Salesforce user
Creating a dedicated read-only Salesforce user is a simple way to specify which objects Flow will capture.
-
While signed in as an administrator, create a new profile by cloning the standard Minimum Access profile.
-
Edit the new profile's permissions. Grant it read access to all the standard and custom objects you'd like to capture with Flow.
-
Create a new user, applying the profile you just created. You'll use this user's email address and password to authenticate Salesforce in Flow.