Salesforce
Connect & Ingest data from Salesforce
Salesforce is a leading Customer Relationship Management (CRM) platform. The Sling Salesforce connector extracts data from the Salesforce REST API, supporting standard objects like accounts, contacts, leads, opportunities, cases, campaigns, and custom objects.
Setup
The following credentials and inputs are accepted:
Secrets:
client_id(required) -> Your Salesforce Connected App Client IDclient_secret(required) -> Your Salesforce Connected App Client Secretinstance(required) -> Your Salesforce instance URL (e.g.,mycompany.my.salesforce.com)
Inputs:
anchor_date(optional) -> The starting date for historical data extraction (default: 1 year ago). Format:YYYY-MM-DDTHH:MM:SSZ
Getting Your Credentials
Log in to your Salesforce organization
Go to Setup > Apps > App Manager
Create a new Connected App with OAuth 2.0 enabled
Set OAuth Scopes:
api(Access and manage your data)refresh_token(Offline access)
Copy your Client ID and Client Secret
Your instance URL is your Salesforce domain (e.g.,
mycompany.my.salesforce.com)
Using sling conns
Here are examples of setting a connection named SALESFORCE. We must provide the type=api property:
Environment Variable
See here to learn more about the .env.sling file.
Sling Env File YAML
See here to learn more about the sling env.yaml file.
With anchor date for historical data:
Replication
Here's an example replication configuration to sync Salesforce data to a PostgreSQL database:
Selective sync example:
Full refresh example for metadata:
Endpoints
Core CRM Objects
accounts
Account records
Yes
contacts
Contact records
Yes
leads
Lead records
Yes
opportunities
Opportunity records
Yes
cases
Case/ticket records
Yes
Activity & Campaign Objects
campaigns
Campaign records
Yes
campaign_members
Campaign member associations
Yes
events
Calendar events
Yes
tasks
Task records
Yes
Products & Pricing
products
Product2 records
Yes
pricebooks
Pricebook records
Yes
Orders & Contracts
orders
Order records
Yes
order_items
Order line items
Yes
contracts
Contract records
Yes
Opportunity Details
opportunity_line_items
Opportunity line items
Yes
opportunity_contact_roles
Contact roles on opportunities
Yes
opportunity_history
Opportunity field change history
Yes
Users & Org Structure
users
User records
Yes
user_roles
User role hierarchy
Yes
groups
Public groups and queues
Yes
Metadata & Configuration
organizations
Organization metadata
No
profiles
User profile definitions
Yes
record_types
Record type definitions
Yes
File & Content Objects
assets
Asset records
Yes
content_documents
File metadata
Yes
content_versions
File version history
Yes
Discovery
_sobjects
Available Salesforce objects metadata
No
Custom Objects
The connector automatically discovers and syncs custom objects in your Salesforce organization. Custom objects are dynamically extracted and named based on their Salesforce API names (e.g., Project__c becomes projects).
To discover available endpoints:
Incremental Sync
The Salesforce connector uses time-based incremental sync with the SystemModstamp timestamp:
First run: Fetches all records from
anchor_date(default: 1 year ago) to presentSubsequent runs: Only fetches records modified after the last sync
Update tracking: Uses
SystemModstampto detect changed records
The SystemModstamp field represents when a record was last modified in Salesforce, including:
Direct record changes
Child record changes
Formula field recalculations
This ensures you capture both new records and updates to existing records.
Date Fields
All Unix timestamp fields are automatically converted to proper datetime columns. Standard timestamp fields like CreatedDate, LastModifiedDate, and SystemModstamp are handled appropriately.
Rate Limiting
Salesforce API has rate limits based on your license type:
Standard: 1,000 API calls per 24 hours per user
Unlimited/Performance: 4,000-10,000 API calls per 24 hours per user
The connector automatically:
Uses conservative rate limiting (5 requests/second by default)
Retries with exponential backoff on 429 (rate limit) responses
Batches SOQL queries to minimize API calls
Limitations & Disabled Endpoints
Some endpoints may be disabled by default due to Salesforce edition limitations (e.g., unavailable in Developer Edition):
opportunity_team_members- Not available in all editionsaccount_team_members- Not available in all editionsquotes- Not available in all editions
These can be re-enabled if your Salesforce edition supports them.
Common Use Cases
Sync Core Sales Data
Sync Customer Service Data
Sync Marketing & Campaign Data
Sync Orders & Contracts
Sync Organizational Metadata
Sync All Endpoints
Troubleshooting
Authentication Issues
Verify your instance URL is correct (e.g.,
mycompany.my.salesforce.com, nothttps://mycompany.my.salesforce.com)Ensure your Connected App is approved by your Salesforce administrator
Check that your Client ID and Client Secret are correct
No Records Returned
Verify the endpoint exists in your Salesforce edition (some are limited to specific editions)
Check that your user has access to the objects you're trying to sync
Verify your Salesforce API is enabled
Custom Objects Not Appearing
Custom objects must be marked as "Queryable" in Salesforce
Only custom objects are automatically discovered; ensure you're using the
_sobjectsendpoint to see available objects
If you are facing issues connecting, please reach out to us at support@slingdata.io, on discord or open a Github Issue here.
Last updated
Was this helpful?