28
OData Connector Power of Programming

Scribe online 04 o data connector

Embed Size (px)

Citation preview

Page 1: Scribe online 04   o data connector

OData Connector

Power of Programming

Page 2: Scribe online 04   o data connector

Abstract

Do you want the power of programming directly against OData services? – Odata is increasingly used by major CRM and ERP vendors as the preferred method to consume data. In this session we will discuss how to connect to an OData service and view all of the entity sets exposed. We will cover some of the challenges and benefits of using the new OData connector in your integration design.

Page 3: Scribe online 04   o data connector

What is Odata?

Open Data Protocol (OData)

Open protocol allows the creation and

consumption of queryable and

interoperable restful APIs

Microsoft CentricProvides database-like access to your data –“ODBC for the Web”

Page 4: Scribe online 04   o data connector

Data Providers

Private Apps SQL SQL Azure

Azure Data Marketplace

Data.gov

Page 5: Scribe online 04   o data connector

ERP

AX Odata NAV GP SL

SAP Netsuite Accumatica

Page 6: Scribe online 04   o data connector

Why Do I Care About Odata?

EasyAzure Data

Marketplace

Microsoft ERP

Direction to Odata

Page 7: Scribe online 04   o data connector
Page 8: Scribe online 04   o data connector
Page 9: Scribe online 04   o data connector

ERP Implications

Augment Customer Data

Data Enhancement

Not all support CRUD operations

Page 10: Scribe online 04   o data connector

ERP direction regarding OData

Implementation varies greatly between all the apps. Some are "fully baked" api's great for querying and interacting with app

Microsoft has indicated that every ERP system will have ubiquitous OData hooks

Page 11: Scribe online 04   o data connector

Scribe Online oData ConnectorFeatures and Limits

OData protocol version 3.0

Delete Operation

Optimistic Concurrency

Page 12: Scribe online 04   o data connector

OData Metadata Not Supported

Edm.Geography

Edm.GeographyPoint

Edm.GeographyLineString

Edm.GeographyPolygon

Edm.GeographyMultiPoint

Edm.GeographyMultiLineString

Page 13: Scribe online 04   o data connector

Dynamics CRM: Query -

Each time that you retrieve records, only the

top 50 records in your query are returned

Page 14: Scribe online 04   o data connector

Odata Integration Pallette

Page 15: Scribe online 04   o data connector

Update Replace

A replacement update issues a PUT request. The OData service replaces all property values with those specified in the request.

Any properties not included in the request (i.e. unmapped fields) are either cleared or set to their default values. Any data in fields with unsupported data types is lost.

Page 16: Scribe online 04   o data connector

Optimistic Concurrency = Record Locking Lite

Entity Tags (ETag) to determine how to update or delete data The OData Connector exposes these ETags as fields.

The ETag field is available as a source and target

Optimistic Concurrency is optional

Page 17: Scribe online 04   o data connector

Batch Processing

The OData Connector supports batch processing if your OData service also supports batch processing. The number of records allowed per batch will vary depending on the OData service.

Page 18: Scribe online 04   o data connector

Update Patch And Update Merge

The OData service replaces exactly those property values that are specified in the request (i.e. mapped fields). Any properties not included in the request are not altered.

Page 19: Scribe online 04   o data connector

Conditional Success

When you insert or update a record, some services may indicate success but also return error information in the response

Page 20: Scribe online 04   o data connector

Integration in Action

Page 21: Scribe online 04   o data connector
Page 22: Scribe online 04   o data connector
Page 23: Scribe online 04   o data connector

NAV Configuration

Page 24: Scribe online 04   o data connector
Page 25: Scribe online 04   o data connector
Page 26: Scribe online 04   o data connector
Page 27: Scribe online 04   o data connector

NAV Specific Limits

Filters OK

Querying related entities through joins are unsupported –.

What fields are Exposed?

http://localhost:7048/DynamicsNAV70/OData/$metadata

Page 28: Scribe online 04   o data connector

Tips/Tricks/Gottcha’s

If you try to use an operation that is not implemented in your OData service, you may see an error message.

Basic Authentication only (a Scribe limitation to not support OAuth with OData connector)