Salesforce Setup
This guide will walk you through configuring your Salesforce organization to work with Sync or Swim.
Overview
Section titled “Overview”To connect Sync or Swim to your Salesforce organization, you’ll need to:
- Create a Salesforce Connected App
- Configure OAuth settings
- Generate your security token
- Gather credentials for Sync or Swim configuration
Prerequisites
Section titled “Prerequisites”- Salesforce Administrator access
- Salesforce edition: Any edition (Professional, Enterprise, Unlimited, Developer)
- API access enabled for your organization
Setup Steps
Section titled “Setup Steps”-
Create a Connected App
A Connected App allows Sync or Swim to authenticate and communicate with your Salesforce organization using OAuth 2.0.
Navigate to Setup:
- Log in to your Salesforce organization
- Click the gear icon in the upper right corner
- Select Setup
Create the App:
- In the Quick Find box, type
App Manager - Click App Manager
- Click New Connected App (upper right)
Configure Basic Information:
- Connected App Name:
Sync or Swim Data Sync(or your preferred name) - API Name: This auto-populates based on the name
- Contact Email: Your administrator email address
-
Configure OAuth Settings
-
Check the box Enable OAuth Settings
-
Callback URL: Enter a placeholder URL (required but not used for username-password flow)
https://login.salesforce.com/services/oauth2/callback -
Selected OAuth Scopes: Add the following scopes:
Access and manage your data (api)Perform requests on your behalf at any time (refresh_token, offline_access)Access your basic information (id, profile, email, address, phone)
-
Leave other settings at their defaults
-
Click Save, then Continue
-
-
Retrieve Consumer Key and Secret
- On the Connected App detail page, find the API (Enable OAuth Settings) section
- Click Manage Consumer Details
- Verify your identity (you may need to enter a verification code sent to your email)
- Copy and save:
- Consumer Key (this is your
client_id) - Consumer Secret (this is your
client_secret)
- Consumer Key (this is your
-
Generate Security Token
Salesforce requires a security token when accessing the API from outside your organization’s trusted IP ranges.
- Click your profile picture in the upper right
- Select Settings
- Navigate to My Personal Information > Reset My Security Token
- Click Reset Security Token
- Check your email for the new security token
-
Configure Sync or Swim
- Navigate to
/settingsin the Sync or Swim web interface - Click “Add Service”
- Select “Salesforce” as the adapter type
- Enter your credentials:
- Instance URL: Your Salesforce instance URL (e.g.,
https://na1.salesforce.com) - Host:
login.salesforce.com(production) ortest.salesforce.com(sandbox) - Username: Your Salesforce username
- Password: Your Salesforce password
- Security Token: Token from Step 4
- Client ID: Consumer Key from Step 3
- Client Secret: Consumer Secret from Step 3
- Instance URL: Your Salesforce instance URL (e.g.,
- Click “Test Connection” to verify
- Click “Create Service” to save
- Navigate to
Required Credentials Summary
Section titled “Required Credentials Summary”| Field | Description | Example |
|---|---|---|
| Instance URL | Your Salesforce instance URL | https://na1.salesforce.com |
| Host | Login host | login.salesforce.com (production) or test.salesforce.com (sandbox) |
| Username | Your Salesforce username | [email protected] |
| Password | Your Salesforce password | Your account password |
| Security Token | Token from email | Emailed to you |
| Client ID | Consumer Key | Starts with 3MVG9... |
| Client Secret | Consumer Secret | Long alphanumeric string |
Troubleshooting
”Invalid Grant” Error
Section titled “”Invalid Grant” Error”Cause: Usually indicates incorrect credentials or an expired security token.
Solutions:
- Verify your username and password are correct
- Reset your security token and update the configuration
- Ensure you’re using the correct host (
login.salesforce.comvstest.salesforce.com)
“Invalid Client” Error
Section titled ““Invalid Client” Error”Cause: Incorrect Consumer Key (client_id) or Consumer Secret (client_secret).
Solutions:
- Re-check the Consumer Key and Secret from your Connected App
- Ensure you copied them completely (they can be very long)
- Verify the Connected App is active
”Insufficient Privileges” Error
Section titled “”Insufficient Privileges” Error”Cause: The user account doesn’t have necessary permissions.
Solutions:
- Ensure the user has API access enabled
- Check the user’s profile has appropriate object and field permissions
- Verify the OAuth scopes in the Connected App include
apiaccess
API Rate Limits
Section titled “API Rate Limits”Sync or Swim uses polling-based synchronization which consumes API calls:
- Typical usage: ~1,500-2,000 API calls per day (20 objects, 60-second polling)
- Enterprise edition: 1,000+ calls per user per day
- Unlimited/Performance editions: Higher limits
To monitor API usage:
- Setup > System Overview > API Usage
- Track daily API call consumption
- Adjust polling frequency if needed
Security Best Practices
- Use a dedicated integration user: Create a specific Salesforce user for Sync or Swim integration
- Apply least privilege: Grant only the permissions needed for synchronization
- Rotate credentials regularly: Update passwords and security tokens periodically
- Monitor access: Review login history and API usage regularly
- Use IP restrictions: Configure trusted IP ranges in the Connected App if possible
Additional Resources
Section titled “Additional Resources”Support
Section titled “Support”If you encounter issues not covered in this guide, please contact Sync or Swim support with:
- Error messages from the Sync or Swim logs
- Salesforce edition and API version
- Connected App configuration (without credentials)