Set up Salesforce Connect
Overview of Setup
Setting up external data integration with Salesforce Connect involves these high-level steps.
- Create the external data source. If your external system hosts multiple services, create an external data source for each service that’s required to access the data.
- Create the external objects and their fields. Create an external object in your Salesforce org for each external data table that you want to access. On each external object, create a custom field for each external table column that you want to access from your Salesforce org.
- Define relationships for the external objects. Create lookup, external lookup, and indirect lookup relationship fields to provide seamless views of data across system boundaries.
- Enable user access to external objects and their fields. Grant object and field permissions through permissions sets or profiles.
-
Set up user authentication. For each external data source that
uses per-user authentication, do both of the following.
- Enable users to authenticate to the external data source. Grant users access through permission sets or profiles.
- Set up each user’s authentication settings. Tell your users how to set up and manage their own authentication settings for external systems in their personal settings. Alternatively, you can perform this task for each user.
As part of this module, you integrate sample order data with the existing account data in your Salesforce Developer Edition. To go through the steps, you need to install a test package that configures the necessary schema on the account object, creates a Customer ID field, and assigns a value for Customer ID to each account.
Follow these steps to install the package.
- Open a browser, and click here to start the installation.
- Select Install for Admins Only.
- Click Install.
- Select the External Orders app.
- Click Set Customer IDs to assign customer ID
numbers to the sample account records in your Developer
Edition.
Your Salesforce Developer Edition is now set up for the main section of the tutorial. It’s time to integrate some data!
Connect an External Data Source
As an exercise, let’s connect an existing OData 2.0 data source that’s publicly accessible.
- From Setup, enter External Data Sources in the Quick Find box, then select External Data Sources.
- Click New External Data Source.
- Enter OrderDB as the label. As you click or tab away from the label field, the name field defaults to OrderDB.
- Select Salesforce Connect: OData 2.0 as the type.
- Enter https://orderdb.herokuapp.com/orders.svc/ as the URL.
- Leave the remaining settings with their default values and click Save.
Now that you’ve configured an external data source, you can select the tables you wish to integrate into your Salesforce org.
Create External Objects
You can create or modify an external object.
- From Setup, enter External Data Sources in the Quick Find box, then select External Data Sources and then click the OrderDB external data source.
- Click Validate and Sync.
- Select both Orders and OrderDetails.
- Click Sync.
Syncing creates the external objects corresponding to the tables that you selected. Syncing does not store any data in Salesforce. Syncing only defines mappings to external tables or repositories that contain the data. These mappings enable Salesforce to access and search the external data.
View External Data
After you’ve connected the external data source and defined the external objects, you can view the external data directly in your Salesforce org.
- From Setup, enter External Data Sources in the Quick Find box, then select External Data Sources.
- Click the OrderDB external data source.
- Scroll down to External Objects and click
Orders.
- External object API names have the suffix __x rather than __c.
- External objects have a reference to their external data source and a table within that source.
- External objects have different standard fields. Display URL is the OData 2.0 URL representing a record in the external database, while External ID is the primary key value for each record.

Let’s create a custom tab to easily access the order records.
- From Setup, enter Tabs in the Quick Find box, then select Tabs.
- Click the New button next to Custom Object Tabs.
- Select Orders as the Object.
- Click the selector next to Tab Style and choose whichever style you like.
- Click Next.
- Click Next to accept the default tab visibility settings.
- Click the checkbox next to Include Tab to deselect all the apps.
- Click the checkbox next to External Orders to select it.
- Click Save.
You can now view the external order data as if it was stored in custom objects in your Salesforce org.
- If the app menu (top right) is not already showing External Orders, click the app menu and select it.
- Click the Orders tab.
- Click the Go! button next to View: All.
Salesforce Connect retrieved order IDs for the first 25 order records from the sample order database. You can configure the fields you want displayed, as in any other list view.
- Click one of the order External ID values.
Salesforce Connect retrieved all the field values for the order you selected.
It’s important to remember that external data is never duplicated in your Salesforce org. Salesforce Connect always fetches current data from the external system in real time.
Now that you can see external data in your org, you can also link it to existing data by creating lookup relationships. You’ll see how to do that in a later unit.
Set Up User Authentication
- Named Principal—Your entire Salesforce org shares one login account on the external system.
- Per User—Your org uses multiple login accounts on the external system. You or your users can set up their personal authentication settings for the external system.
For more information, see Identity Type for External Data Sources in the Salesforce Help.