Set up and configure Salesforce as a destination in RudderStack.
3 minute read
This guide will help you set up Salesforce as a destination in the RudderStack dashboard. It also lists the configuration settings required to correctly send data from the supported sources to Salesforce.
Before you begin:
Note that RudderStack does not support dev instances of Salesforce. See FAQ for more information.
RudderStack recommends creating a new Salesforce account to protect any confidential information in your existing Salesforce account. However, this is completely optional.
Give RudderStack the required API permissions by creating a new user account in your Salesforce dashboard.
Go to Setup > Administration Setup > Users > New User and select System Administrator as the profile type.
For the above user, make sure the password policy is set to Never expires to avoid event delivery issues due to password expiration. See the Salesforce documentation for more information.
Turn off two-factor authentication for your Salesforce account. RudderStack will be unable to authenticate while making requests if 2FA is enabled.
Make sure the Salesforce objects are searchable and fields are creatable before sending events. Otherwise, it can result in errors during event transformation or delivery.
From your RudderStack dashboard, add the source. Then, from the list of destinations, select Salesforce.
Assign a name to your destination and click Next.
Connection settings
Setting
Description
User Name
Enter your Salesforce username in this field.
The Salesforce API does not support certain special characters in the username.
For example, if you create a secondary user with the email alex.keener+rudder@domain.com, Salesforce sets the username to that email address by default. However, to work with the Salesforce API you will need to remove the + sign from the username.
Password
Enter the password associated with the Salesforce account.
OAuth 2.0 username-password flow is blocked by default in new orgs to avoid any security risks.
Make sure to toggle on the Allow OAuth Username-Password Flows setting to enable this flow for your organization. See the Salesforce documentation for more information.
This setting is toggled on by default and lets you map the RudderStack event properties to the corresponding Salesforce fields.
Sandbox mode
Toggle on this setting if you are using a Sandbox environment for the integration.
Use contact ID for converted leads
Toggle on this setting if both the lead and contact field mappings are the same.
FAQ
Which Salesforce Edition should I use to access the API?
Before connecting to the Salesforce API with RudderStack, make sure you are using the right Salesforce edition. You must have either the Enterprise, Unlimited, Developer, or Performance editions to access the API.
Does RudderStack support dev instances of Salesforce?
No, RudderStack does not support Salesforce dev instances currently.
Note that the dev environments (for example, https://companyabc-dev-ed-develop.lightning.force.com/) are different from Salesforce’s sandbox environments.
How do I check the number of Salesforce API calls left for the day?
To check the number of Salesforce API calls, go to Setup > Administration Setup > Company Profile > Company Information. You should then be able to see a field called API Requests, Last 24 Hours, which contains the number of API calls left for the day.
This site uses cookies to improve your experience while you navigate through the website. Out of
these
cookies, the cookies that are categorized as necessary are stored on your browser as they are as
essential
for the working of basic functionalities of the website. We also use third-party cookies that
help
us
analyze and understand how you use this website. These cookies will be stored in your browser
only
with
your
consent. You also have the option to opt-out of these cookies. But opting out of some of these
cookies
may
have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This
category only includes cookies that ensures basic functionalities and security
features of the website. These cookies do not store any personal information.
This site uses cookies to improve your experience. If you want to
learn more about cookies and why we use them, visit our cookie
policy. We'll assume you're ok with this, but you can opt-out if you wish Cookie Settings.