- Salesforce Platform App Builder Certification Handbook
- Siddhesh Kabe
- 391字
- 2021-07-16 11:21:42
An overview of Lightning Connect and external objects
Lightning Connect is one of the features that allows us to seamlessly integrate an external system with Salesforce in real time. We can import external data tables as external objects into Salesforce. For example, data stored on the enterprise resource planning (ERP) system can be connected as an external object via web service callouts.
The data is connected in real-time, so there is no scope for data being stale and out of sync. We can use external objects when:
- We want to connect Salesforce to a system with large amounts of data on an external system
- We want real-time access to the latest data
The following diagram illustrates the Lightning Connect process:

Let's start by connecting to a sample external web service. For this example, we are going to connect to a sample web service found at http://Odata.org.
We are going to connect to the web-service at http://services.odata.org/V2/(S(l4iqzxoq5ftoav2fe5qcumtx))/OData/OData.svc/.
- Go to Setup | Develop | External Data Sources | New, as shown in the following screenshot:
The Type should be Lightning Connect: OData 2.0 and the server URL will be the one that we picked up for our example. Since this is an external open service, in the Authentication panel we will select Identity Type as Anonymous and Authentication Protocol as No Authentication.
- On the detail page, we will click on the option to Validate and Sync our new service:
- Validate and Sync will scan the URL and give you all the objects available to Sync with Salesforce. If it does not sync or you get an error, it will be shown in the Status field:
- We are going to select a Product Table to Sync with Salesforce. We will select the products and click on the Sync button to import them as an external object. Under Setup | External Object, you can see the new object:
- The external object thus created has its own object layout. We can create a lookup relationship with the existing object on the external object. Similarly, we can add a lookup to the external object from our standard object:
External object tabs
We can create a tab for our external object, just like how we can create a tab for a custom object. Go to Setup | Create | Tab, and select the external object from the list.
- Flask Web全棧開發實戰
- Xcode 7 Essentials(Second Edition)
- Learn Programming in Python with Cody Jackson
- Backbone.js Blueprints
- Modular Programming in Java 9
- R大數據分析實用指南
- Web Development with MongoDB and Node(Third Edition)
- Solr Cookbook(Third Edition)
- iPhone應用開發從入門到精通
- Java服務端研發知識圖譜
- SQL Server 2014 Development Essentials
- 自己動手構建編程語言:如何設計編譯器、解釋器和DSL
- HTML5程序開發范例寶典
- Python自動化運維:技術與最佳實踐
- Java語言GUI程序設計