OData, External objects & Lightning Connect
-
Upload
prasanna-deshpande- -
Category
Software
-
view
88 -
download
2
Transcript of OData, External objects & Lightning Connect
© Copyright 2014 BMC Software, Inc. 1
—
Product Developer
Remedyforce
@Prasanna__d
April 18 / 2015
Prasanna Deshpande
OData, External Objects & Lightning Connect
© Copyright 2014 BMC Software, Inc. 2Internal Use Only
Session outline
• OData
• Specification
• Designing
• External objects
• Advance External objects
• Lightning Connect
• Demo
© Copyright 2014 BMC Software, Inc. 3
—01oData
© Copyright 2014 BMC Software, Inc. 4
OData specification
From OData.orgOData is a standardized protocol for creating and consuming data APIs. OData builds on core protocols like HTTP and
commonly accepted methodologies like REST. The result is a uniform way to expose full-featured data APIs.
Standardization effortThis was proposed by Microsoft in 2009, OASIS standardized it 2014.
© Copyright 2014 BMC Software, Inc. 5
OData block diagram
© Copyright 2014 BMC Software, Inc. 6
OData over REST
© Copyright 2014 BMC Software, Inc. 7
OData v2.0 URI – conventions
• Metadata of the service• http://services.odata.org/OData/OData.svc/ and http://services.odata.org/OData/OData.svc/$m
etadata
• Query Examples• http://services.odata.org/OData/OData.svc/Categories - Brings all categories
• http://services.odata.org/OData/OData.svc/Categories(1) – Brings category with key 1
• http://services.odata.org/OData/OData.svc/Categories(1)/Name - Brings Name for the category with key 1
© Copyright 2014 BMC Software, Inc. 8
OData adoption
• Microsoft
• SAP
• Red Hat
• IBM
• Salesforce
© Copyright 2014 BMC Software, Inc. 9
OData developer libraries
• Java – Apache Olingo, odata4j
• .NET – WCF services, AdaptiveLINQ, OData client code generator
• Javascript – ODatajs beta, datajs, JayData, node-odata
• C++ - ODatacpp
• Python - ODatapy
Producers -
• Cloud Drivers
• IBM DB2 & Infomix
• Microsoft Dynamics CRM 2011
• SAP NetWeaver Gateway
• SharePoint
• SQL Server 2012
• Teiid (JBOSS)
• Team Foundation Server
• Windows Azure Table Storage
Consumers-
• ADO.NET Driver
• JDBC Driver
• Joomla
• Lightning Connect
• Drupal
• Excel Add-In
• Modern Browsers
• Telerik Reporting
OData Ecosystem
© Copyright 2014 BMC Software, Inc. 11
—External Objects
02
© Copyright 2014 BMC Software, Inc. 12
What are External Objects
• An Alternative to ETL ▪ Extract-Transform-Load is very popular for data synchronization
• Using External Objects for Integration Expose OData or proprietary data in your Salesforce org
• Using the meta data model (EDM) exposed by OData service, the platform can create a custom object & fields. This object will have an extension __x which is differentiated from custom object __c.
© Copyright 2014 BMC Software, Inc. 13
What I can do with External objects
© Copyright 2014 BMC Software, Inc. 14
External Objects Limits
• At max 100 external objects can be defined per org
• External objects are read-only
• Note, attachments, workflows, apex sharing rules, approval process, record level security, field level security, triggers etc. are not supported
• Formula field cannot reference External objects
• Auto number, encrypted field, Text area, Formula, geolocation, master-detailed etc. fieldtypes are not supported
More info here
© Copyright 2014 BMC Software, Inc. 15
External Objects lookup fields
• Mainly two type of external lookup relationship• External lookup relationship - An external lookup relationship links
a child standard, custom, or external object to a parent external object
• Indirect lookup relationships - An indirect lookup relationship links a child external object to a parent standard or custom object.
© Copyright 2014 BMC Software, Inc. 16
—03Lightning Connect Demo
© Copyright 2014 BMC Software, Inc. 17
—
Thank You—
Bring IT to Life.™
© Copyright 2014 BMC Software, Inc. 18
Bring IT to Life
© Copyright 2014 BMC Software, Inc. 19
• OData – http://odata.org• OData URI conventions - http://www.odata.org/documentation/odata-
version-2-0/uri-conventions• Slides referred - http://www.slideshare.net/metadaddy/odata-a-standard-api-
for-data-access , http://www.slideshare.net/developerforce/df13-using-external-objects-for-integration-mt
• Tutorial - http://developerforce.github.io/lightning-connect-tutorial/index.html
References:
18 April 2015 Twitter: @Prasanna__d20