In Salesforce, External objects are similar to custom objects, and these external objects allow us to access and interact with data stored outside of the Salesforce organization.
This means the external data can be viewed and managed within the organization as native Salesforce data.
In this Salesforce tutorial, I will explain external objects in Salesforce and how to set up external objects in Salesforce.
What are External Objects in Salesforce?
In Salesforce, External objects are available for API versions 32.0 and later. External objects are similar to custom objects, but the data of external objects is stored outside our Salesforce org. Each org can have up to 200 external objects.
Suppose the data you want to access is stored in the external system. Instead of importing this data into Salesforce, you can use external objects to access it in real-time through web service callouts.
These external objects are mapped to the data stored in the external system, enabling integration without importing data into Salesforce. By defining external data sources, organizations can utilize real-time data from systems such as databases, ERP systems, or content management platforms directly within Salesforce. This ensures that users have access to the updated information.
Set up External Objects in Salesforce
To set external objects in Salesforce, we must define external data sources. Then, we need to validate the data source and create an external Salesforce object with the embedded data source.
Create External Data Sources in Salesforce
To create an external data source in Salesforce, navigate to the setup page and follow the steps below.
- On the setup, go to Quick Find and search, then select External Data Sources.

- In the setup of External Data Sources, click on the New External Data Source button.
- Enter the external data source name, and its Name will be auto-filled. Select the type of external source. In this example, I have selected the type “Salesforce Connect: OData 2.0“.

- In the URL, enter the URL link of the external data source. I have used the URL “https://orderdb.herokuapp.com/orders.sv“.
- After this, leave the other fields with their default values and click Save.
- In the next window, click on the Validate and Sync button.

- Select the columns from the source data table; for example, I have selected the Order and OrderDetail tables. After this, click on the Sync button.

With this, we have created and validated the external data source that we will use to access the external Salesforce object.
Create an External Object in Salesforce
After validating the external data resource, we will create an external object. To create an external object in your org, navigate to Salesforce’s setup page and follow the steps below.
- On the setup page, go to the Quick Find box and search, then select “External Objects.”

- In the External Object setup window, click on the New External Object.
- In this step, enter the required details, such as Label and Plural Label. The Object Name field is a unique identifier that refers to this external object when using the API.

- In the External Data Source field, we must enter the external data source that contains the connection details we want to use for this external object. For this, select the data source that we have created.
- After this, enter the Table Name, select the optional settings, and then select the Deployed radio button to deploy the external object. Click Save.

As we click on the Save button, the external object will be created and deployed.

This way, we can create and set up external objects in Salesforce by following the above steps.
Conclusion
In this Salesforce tutorial, we have learned to create external data sources and external objects, and with this, we can efficiently integrate the external data within our Salesforce environment, making it accessible to the users while ensuring it remains updated.
While creating the data sources, ensure that the URL used for the external system provides a compatible API for Salesforce Connect.
You may also like to read:
- Create an External ID in Salesforce
- Create External Credentials Salesforce
- Salesforce Update Records using External ID
- External Lookup Relationship in Salesforce

Abhijeet is a skilled Salesforce developer with experience in developing and integrating dashboards, data reports, and Salesforce applications. He is also skilled at optimizing processes and flow automation processes, coding, and executing complex project architecture. Read more about us | LinkedIn Profile.