lightning connect で外部データにリアルタイムにアクセス

33
Go Faster with Lightning : Lightning Connect 外部データにリアルタイムにアクセス 2015422

Upload: salesforce-developers-japan

Post on 17-Jul-2015

432 views

Category:

Technology


5 download

TRANSCRIPT

Page 1: Lightning Connect で外部データにリアルタイムにアクセス

Go Faster with Lightning :

Lightning Connect で 外部データにリアルタイムにアクセス 2015年4月22日

Page 2: Lightning Connect で外部データにリアルタイムにアクセス

Mitsuhiro Okamoto Developer Programs Manager

[email protected]

Page 3: Lightning Connect で外部データにリアルタイムにアクセス

アジェンダ

▪  Lightning Connect概要 ▪  Odataとは ▪  デモ ▪  ロードマップ ▪  Apex Connectorライブラリ ▪  Q & A

Page 4: Lightning Connect で外部データにリアルタイムにアクセス

Safe Harbor

Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. All statements other than statements of historical fact could be deemed forward-looking, including any projections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for the most recent fiscal quarter ended July 31, 2011. This document and others are available on the SEC Filings section of the Investor Information section of our Web site. Any unreleased services or features referenced in this or other press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.

Page 5: Lightning Connect で外部データにリアルタイムにアクセス

Lightning Connect概要

Page 6: Lightning Connect で外部データにリアルタイムにアクセス

Lightning Connectとは?

▪  Winter ’15より正式リリース – 利用には追加機能ライセンス

▪  データをコピーせずに統合する機能を提供する

▪  外部データへシンプルにポイント & クリックでアクセス

▪  データを保存しないので、データレジデンシーの問題を回避

▪  バックオフィスとの連携にかかる開発期間を大幅に低減

Page 7: Lightning Connect で外部データにリアルタイムにアクセス

どのようにLightning Connectは動作するか?

▪  データアクセスはオンデマンド / リアルタイム

▪  データアクセスは常に参照

▪  データはSalesforce Objectに変換されてユーザに提供される

▪  オープンで業界標準なアクセスプロトコルを採用

Page 8: Lightning Connect で外部データにリアルタイムにアクセス

どんな外部データソースをサポートしているか?

Open Data (OData) 2.0をサポートするすべてのデータソースで利用可能

▪  一般的なサービス –  SAP NetWeaver ゲートウェイ

–  Microsoft SQLサーバ, Dynamics CRM/NAV, Azureテーブルサービス

–  IBM Websphere exTreme Scale

–  Heroku Connect External Objects

▪  自作のデータプロデューサ –  .Net WCF データサービス, Java (Apache Olingo, odata4j), NodeJS

▪  パートナーから提供されるもの –  Dell Boomi, Informatica, Jitterbit, MuleSoft, Progressive, SoftwareAG

Page 9: Lightning Connect で外部データにリアルタイムにアクセス

Open Data Protocol (OData)

Page 10: Lightning Connect で外部データにリアルタイムにアクセス

“Odataはデータを作成や更新を行うAPIのための 標準化されたプロトコルです

OdataはコアのHTTPなどのプロトコルおよびRESTのような一般的に受け入れられている方法論に基づいています

そしてデータを公開するためのAPIとして

必要な機能を全て備えています”

Page 11: Lightning Connect で外部データにリアルタイムにアクセス

OData

Microsoftによる提案 – 2009

OASISによって標準化 – 2014

Page 12: Lightning Connect で外部データにリアルタイムにアクセス

OData

リソースに対するURI

http://host/service

/Products

?$filter=Rating+eq+3&$select=Rating,+Name

Page 13: Lightning Connect で外部データにリアルタイムにアクセス

OData

AtomのXML/JSON表現を踏襲

Page 14: Lightning Connect で外部データにリアルタイムにアクセス

Odata例

Service Document $ curl 'http://host/service/'

{

"@odata.context": "http://host/service/$metadata",

"value": [

{

"kind": "EntitySet",

"name": "Products",

"url": "Products"

},

...

Page 15: Lightning Connect で外部データにリアルタイムにアクセス

OData例

Metadata (XML Only ☹) $ curl 'http://host/service/$metadata'

<?xml version="1.0" encoding="utf-8"?>

<edmx:Edmx xmlns:edmx="http://docs.oasis-open.org/odata/ns/edmx" Version="4.0">

<edmx:DataServices>

<Schema xmlns="http://docs.oasis-open.org/odata/ns/edm" Namespace="ODataDemo">

<EntityType Name="Product">

<Key>

<PropertyRef Name="ID"/>

</Key>

<Property Name="ID" Type="Edm.Int32" Nullable="false"/>

<Property Name="Name" Type="Edm.String"/>

...

Page 16: Lightning Connect で外部データにリアルタイムにアクセス

OData例

Query $ curl 'http://host/service/Products?$filter=Rating+eq+3&$select=Rating,+Name'

{

"@odata.context": "http://host/service/$metadata#Products(Rating,Name)",

"value": [

{

"Name": "Milk",

"Rating": 3

},

...

Page 17: Lightning Connect で外部データにリアルタイムにアクセス

OData例

特定のエントリを取得 $ curl 'http://host/service/Products(1)'

{

"@odata.context": "http://host/service/$metadata#Products/$entity",

"ID": 1,

"Name": "Milk",

"Description": "Low fat milk",

"ReleaseDate": "1995-10-01T00:00:00Z",

"DiscontinuedDate": null,

"Rating": 3,

"Price": 3.5

}

Page 18: Lightning Connect で外部データにリアルタイムにアクセス

OData例

エントリを更新

$ curl -w "Status: %{http_code}\\n” \

-H 'Content-Type: application/json' \

-X PATCH \ -d '{"@odata.type":"ODataDemo.Product", "Price":"2.99"}' \

'http://host/service/Products(1)’

Status: 204

Page 19: Lightning Connect で外部データにリアルタイムにアクセス

OData例

Change Tracking Server will POST notifications to the callback URL

$ curl -H 'Prefer: odata.track-changes' -H 'Prefer: odata.callback; url="https://myserver/cb?token=123"'

'http://host/service/Products'

Page 20: Lightning Connect で外部データにリアルタイムにアクセス

Lightning Connect Demo

Page 21: Lightning Connect で外部データにリアルタイムにアクセス

外部オブジェクト≒カスタムオブジェクト

✓  タブ

✓  リストビュー

✓  詳細ページ

✓  Chatterフィード

✓  Visualforceページ上の標準もしくはカスタムコントローラ

✓  Apex SObject タイプ

✓  REST/SOAP API アクセス

✓  ApexやAPIからのSOQL および SOSL クエリ

✓  Salesforce1 モバイルプラットフォームからのアクセス

Page 22: Lightning Connect で外部データにリアルタイムにアクセス

現在幾つかの制限がある

✗  現在はRead-only (read/write はパイロット)

✗  レポート(2015年後半に利用可能になる予定)

✗  数式と積み上げ集計

✗  トリガ、ワークフロー、承認、プロセス

✗  検証ルール

✗  項目履歴管理

✗  ノート、添付

Page 23: Lightning Connect で外部データにリアルタイムにアクセス

Lightning Connectロードマップ

§  Spring ‘15 で、読み込み専用アクセスがGA

§  Spring ’15 でのパイロット、Summer ‘15でGAになるもの –  リアルタイム X-Orgアクセス

–  Apex コネクタライブラリによるカスタムコネクタの開発

§  読み込み/書き込み 機能

§  その先* –  OData 4.0 - トリガのサポート

–  外部オブジェクトのカスタムレポート

§  * Safe Harbor

Page 24: Lightning Connect で外部データにリアルタイムにアクセス

Apex Connector Framework

Page 25: Lightning Connect で外部データにリアルタイムにアクセス

Apex Connector Framework

❏  Lightning Connect用のカスタムアダプタをApexで開発できる

❏  取得したデータは外部オブジェクトとして動作

❏  データサービス用の独自の実装を提供する

❏  Sync - 外部データソースからのメタデータの同期

❏  Query – SOQLクエリを外部データサービスへ変換する

❏  Search - SOSL検索を外部データサービスへ変換する

❏  Summer ’15で正式リリース。LC追加ライセンスに含まれる

❏ Developer Edition組織で有効化

Page 26: Lightning Connect で外部データにリアルタイムにアクセス

Apex Connector Demo

Page 27: Lightning Connect で外部データにリアルタイムにアクセス

もっと見る

http://developer.salesforce.com/lightning

Page 28: Lightning Connect で外部データにリアルタイムにアクセス

オンラインのチュートリアル

http://bit.ly/jp-connect

Page 29: Lightning Connect で外部データにリアルタイムにアクセス

コミュニティを利用する

Success Community Group - Official: Lightning Connect

Page 30: Lightning Connect で外部データにリアルタイムにアクセス
Page 31: Lightning Connect で外部データにリアルタイムにアクセス

developer.salesforce.com/page/JP:Salesforce1_Lightning_Webinar_Series

•  Lightning App Builder

•  Lightning Component Framework

•  Lightning Process Builder

•  Lightning Connect

Lightning Deep Dive Webinars

Page 32: Lightning Connect で外部データにリアルタイムにアクセス

Questions?

Page 33: Lightning Connect で外部データにリアルタイムにアクセス

ありがとうございました