シニア テクニカル アーキテクト
清水 優吾(しみず ゆうご) / 株式会社セカンドファクトリー
@yugoes1021
yugoes1021 Microsoft MVP
for Data Platform - Power BI
(2017.02 -)
Teams の”チーム”と Office 365 グループを
理解して Power Platform を活用せよ
2019-08-31
Power Platform Day Summer '19 ~ 連携祭り!
#JPPUG
https://www.slideshare.net/yugoes1021
自己紹介:
清水 優吾 (Yugo Shimizu) ♂
株式会社セカンドファクトリー
シニア テクニカル アーキテクト
UX を看板に掲げて、飲食業を営んでいる IT 企業に勤めている会社員で
Data Platform をメインに活動をしている Technical Architect
専門・興味:
Data Platform, Power Platform (PowerApps, Flow, Power BI),
o365 周辺サービス
Twitter: @yugoes1021 Facebook: yugoes1021
Qiita: https://qiita.com/yugoes1021
Power BI 勉強会: https://powerbi.connpass.com
Japan Power BI User Group: https://www.facebook.com/groups/JapanPBUG/
Microsoft MVP
for Data Platform -
Power BI
(2017.02 - )
MVP
プロフィールページ
Power Platform
What is Power Platform?
Power Platform
Flow Power BI
• “コーディングなし” で
アプリが作れる
• マルチプラットフォーム
で動作する
• アプリは組織内で管理
• インストール不要
• “コーディングなし” で
ビジネスロジックが
作れる
• 1つのトリガーと
1つ以上のアクション
• MS以外のサービスも
接続可能
• “コーディングなし” で
BI が実現できる
• データの可視化
• 分析用レポート
• リアルタイム
ダッシュボード
• 一時的にデータを保持
Office 365
PowerApps
Power Platform
Power BI
Frontend Business Logic Intelligence
Office 365
つまり システム が作れる
Common Data Service
FlowPowerApps
Power BI dataflows
Power BI
dataflows
Microsoft Flow Power BI
Common
Data
Service
for Apps
Common Data Model
Dynamics 365
AI
Azure Data Lake Storage Gen2 (ADLS)
PowerApps
Your Business DataPower Query
Power Query
Power BI dataflows
Power BI
AI
Azure Data Lake Storage Gen2 (ADLS)
CDS for
Apps
PowerAppsDynamics 365
Your Business Data
Your Azure Subscription
Power BI dataflows
Power BI
Azure Data Lake Storage Gen2 (ADLS)
Data Factory
Databricks
Your Business Data
The Second Use
Power Platform の最新情報を追うには
PowerApps Blog
https://powerapps.microsoft.com/ja-jp/blog/
Flow Blog
https://flow.microsoft.com/ja-jp/blog/
https://powerbi.microsoft.com/ja-jp/blog/
Power Platform の最新情報を追うには
Microsoft PowerApps
https://www.youtube.com/channel/UCGfWR2ekfRFckLjev6eQYLg
Microsoft Flow
https://www.youtube.com/channel/UCG98S4lL7nwlN8dxSF322bA
Jon Levesque
https://www.youtube.com/channel/UClBCcDTylJUzvP8sycg6pEA
https://www.youtube.com/channel/UCy--PYvwBwAeuYaR8JLmrfg
https://www.youtube.com/channel/UCFp1vaKzpfvoGai0vE5VJ0w
【まずはここから理解しよう!】
Teams のチーム = Office 365 グループ
Office 365
Groups
Teams のチームと Office 365 グループについて
チーム
Team BTeam A Team C
Team BTeam A Team C
Teams でチームを作成すると裏側で
Office 365 内に Office 365 グループが作成される
Office 365 グループには以下が含まれる。
SharePoint サイト、ドキュメントライブラリ、
OneNote ノートブックなど
Team A Team B Team C
Teams のチームを作ると…
Office 365 グループが作られる
SharePoint サイトも作られる
チャンネルを作ると共有ドキュメントにフォルダーが作られる
引用および参考:
Microsoft Teams との SharePoint Online と OneDrive for Business の連携
https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
私は Teams のチーム [QiitaTest ]の中に チャンネル [TestChannel] を作ったので
https://shimizumvp.sharepoint.com/sites/QiitaTest/
https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/
https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/General/
https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/TestChannel/
ができています
引用および参考:
Microsoft Teams との SharePoint Online と OneDrive for Business の連携
https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
引用および参考:
Office 365 グループおよび Microsoft Teams
https://docs.microsoft.com/ja-jp/microsoftteams/office-365-groups
Microsoft Teams との SharePoint Online と OneDrive for Business の連携
https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
【次はコレ!】
SharePoint Online サイト
= OneDrive for Business (OD4B)
引用および参考:
OneDrive for Business サイトのカスタマイズ
https://docs.microsoft.com/ja-jp/sharepoint/dev/solution-guidance/customize-onedrive-for-business-sites
OneDrive と SharePoint の共有を管理する
https://docs.microsoft.com/ja-jp/onedrive/manage-sharing
Office 365
Groups
チーム
Team BTeam A Team C
Team BTeam A Team C
Team A Team B Team C
SharePoint ドキュメントライブラリと OneDrive for Business (OD4B)
OD4B
=
つまりアーキテクチャとしては
SharePoint ドキュメントライブラリ = OneDrive for Business
アーキテクチャが同じなので同じ Graph API でアクセスできる
ということで、以上を踏まえて
Teams と Power Platform を連携します
作るもの
スマホで撮った写真をチームメンバーに位置情報とともに
共有するシステム
具体的な説明の前に今回のシナリオ
今回の想定ユーザー
• 不動産関係で物件を探している営業さん
• 好みのロケ地を探しているテレビ番組制作会社の人
• 綺麗な風景を探している写真家、アーティスト
など、何らかの「場所」を探している人が偶然に見つけた
場所を写真に撮り、GPS情報とともに保存、チームに共有
する
チャンネルの SharePoint ドキュメントライブラリに Excel を作成
チャンネルの SharePoint ドキュメントライブラリに Excel を保存
• 画像では既にデータが入ってますが、データはもちろん不要
• 保存したいデータのテーブルを作成
⇒ 必要な列を定義して [テーブルとして書式設定] しておく
PowerApps PowerApps トリガー
Teams のチームに紐づく SharePoint ドキュメントライブラリに保存されている Excel ファイルに
PowerApps から入力されたデータを書き込む
Excel
ファイル
JSON
データ
ドキュメントライブラリ
Excel Online (Business) は
OneDrive for Business 上の Excel のみならず
SharePoint Online 上の Excel にもアクセスが
可能。
両方とも同じ Graph API を使用しているから。
Excel ファイルに書き込ま
れたことを通知するための
メッセージを投稿
https://docs.microsoft.com/ja-jp/connectors/excelonlinebusiness/
Azure Blob Storage
データを溜めた、その後は…
データはお金と一緒。使わなければ意味がない!
自己紹介でお話した通り
I’m an MVP for Data Platform – Power BI
なのです。
そう、ここまでまだ Power BI が出てきてないのです。
これはマズイ!
というわけで Power BI 使います
データはお金と一緒。使わなければ意味がない!
通常なら
1. Power BI Desktop でレポート作成
2. Poewr BI Desktop からレポート発行
ってやります。
が、今回はせっかく Teams を使っているので別の方法で
レポートを Power BI service に作成します。
皆さんがあまり知らない(認知度の非常に低い)方法です
Power BI Service から Excel ファイルを取り込む
1
2
Power BI Service から Excel ファイルを取り込む
突然ですがここでクイズです
OneDrive と SharePoint
どちらを選択しますか?
Power BI Service から Excel ファイルを取り込む
突然ですがここでクイズです
OneDrive と SharePoint
どちらを選択しますか?
A.どちらでも可能ですが
OneDrive の方が便利
Power BI Service から Excel ファイルを取り込む
Power BI Service から Excel ファイルを取り込む
Power BI Service から Excel ファイルを取り込む
データセットに対する設定の確認
参考:
OneDrive または SharePoint Online に格納されているデータセットを更新する
https://docs.microsoft.com/ja-jp/power-bi/refresh-desktop-file-onedrive
あとは Power BI service でレポートを作成するだけ
視覚化、フィールドを選択して
書式 (プロパティ) を設定していけばOK
あとは Power BI service でレポートを作成するだけ
視覚化、フィールドを選択して
書式 (プロパティ) を設定していけばOK
注意点:
Power BI service では
新しい列、メジャーは作成できません
必要な列はすべてデータソース側で用意しておいてください
(今回の場合は Excel で用意しておくこと)
PowerApps
PowerApps トリガー
Teams のチームに紐づく SharePoint ドキュメントライブラリに保存されている Excel ファイルに
PowerApps から入力されたデータを書き込む
Excel
ファイル
JSON
データ
ドキュメントライブラリ
Excel Online (Business) は
OneDrive for Business 上の Excel のみならず
SharePoint Online 上の Excel にもアクセスが
可能。
両方とも同じ Graph API を使用しているから。
Excel ファイルに書き込ま
れたことを通知するための
メッセージを投稿
https://docs.microsoft.com/ja-jp/connectors/excelonlinebusiness/
Azure Blob Storage
Power BI
Excel ファイルをデータソースにして接続
まとめ
Power Platform × 素敵な something
今日は以下の連携を紹介しました
• Teams
• SharePoint Online ドキュメントライブラリ
• PowerApps
• Flow
• Power BI
Power Platform × 素敵な something
お伝えしたかったのは
• Power Platform は隙間を埋める、縁の下の力持ち
• だが表にもちょいちょい顔を出す
• 連携元(先)である something の仕様理解が必要
• 難しいことをやる必要はなく、必要なことをやりましょう
Power Platform 自体の仕様をよーく理解するのは当然として
相手を良く知らずに連携しちゃダメ、絶対。
Power Platform × something nice
以上です
ありがとうございましたー!!!

Teams の”チーム”と Office 365 グループを理解して Power Platform を活用せよ

  • 1.
    シニア テクニカル アーキテクト 清水優吾(しみず ゆうご) / 株式会社セカンドファクトリー @yugoes1021 yugoes1021 Microsoft MVP for Data Platform - Power BI (2017.02 -) Teams の”チーム”と Office 365 グループを 理解して Power Platform を活用せよ 2019-08-31 Power Platform Day Summer '19 ~ 連携祭り! #JPPUG https://www.slideshare.net/yugoes1021
  • 2.
    自己紹介: 清水 優吾 (YugoShimizu) ♂ 株式会社セカンドファクトリー シニア テクニカル アーキテクト UX を看板に掲げて、飲食業を営んでいる IT 企業に勤めている会社員で Data Platform をメインに活動をしている Technical Architect 専門・興味: Data Platform, Power Platform (PowerApps, Flow, Power BI), o365 周辺サービス Twitter: @yugoes1021 Facebook: yugoes1021 Qiita: https://qiita.com/yugoes1021 Power BI 勉強会: https://powerbi.connpass.com Japan Power BI User Group: https://www.facebook.com/groups/JapanPBUG/ Microsoft MVP for Data Platform - Power BI (2017.02 - ) MVP プロフィールページ
  • 3.
    Power Platform What isPower Platform?
  • 4.
    Power Platform Flow PowerBI • “コーディングなし” で アプリが作れる • マルチプラットフォーム で動作する • アプリは組織内で管理 • インストール不要 • “コーディングなし” で ビジネスロジックが 作れる • 1つのトリガーと 1つ以上のアクション • MS以外のサービスも 接続可能 • “コーディングなし” で BI が実現できる • データの可視化 • 分析用レポート • リアルタイム ダッシュボード • 一時的にデータを保持 Office 365 PowerApps
  • 5.
    Power Platform Power BI FrontendBusiness Logic Intelligence Office 365 つまり システム が作れる Common Data Service FlowPowerApps Power BI dataflows
  • 6.
    Power BI dataflows Microsoft FlowPower BI Common Data Service for Apps Common Data Model Dynamics 365 AI Azure Data Lake Storage Gen2 (ADLS) PowerApps Your Business DataPower Query Power Query
  • 7.
    Power BI dataflows PowerBI AI Azure Data Lake Storage Gen2 (ADLS) CDS for Apps PowerAppsDynamics 365 Your Business Data
  • 8.
    Your Azure Subscription PowerBI dataflows Power BI Azure Data Lake Storage Gen2 (ADLS) Data Factory Databricks Your Business Data The Second Use
  • 9.
    Power Platform の最新情報を追うには PowerAppsBlog https://powerapps.microsoft.com/ja-jp/blog/ Flow Blog https://flow.microsoft.com/ja-jp/blog/ https://powerbi.microsoft.com/ja-jp/blog/
  • 10.
    Power Platform の最新情報を追うには MicrosoftPowerApps https://www.youtube.com/channel/UCGfWR2ekfRFckLjev6eQYLg Microsoft Flow https://www.youtube.com/channel/UCG98S4lL7nwlN8dxSF322bA Jon Levesque https://www.youtube.com/channel/UClBCcDTylJUzvP8sycg6pEA https://www.youtube.com/channel/UCy--PYvwBwAeuYaR8JLmrfg https://www.youtube.com/channel/UCFp1vaKzpfvoGai0vE5VJ0w
  • 11.
  • 12.
    Office 365 Groups Teams のチームとOffice 365 グループについて チーム Team BTeam A Team C Team BTeam A Team C Teams でチームを作成すると裏側で Office 365 内に Office 365 グループが作成される Office 365 グループには以下が含まれる。 SharePoint サイト、ドキュメントライブラリ、 OneNote ノートブックなど Team A Team B Team C
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
    引用および参考: Microsoft Teams とのSharePoint Online と OneDrive for Business の連携 https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
  • 18.
    私は Teams のチーム[QiitaTest ]の中に チャンネル [TestChannel] を作ったので https://shimizumvp.sharepoint.com/sites/QiitaTest/ https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/ https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/General/ https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/TestChannel/ ができています
  • 19.
    引用および参考: Microsoft Teams とのSharePoint Online と OneDrive for Business の連携 https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
  • 20.
    引用および参考: Office 365 グループおよびMicrosoft Teams https://docs.microsoft.com/ja-jp/microsoftteams/office-365-groups Microsoft Teams との SharePoint Online と OneDrive for Business の連携 https://docs.microsoft.com/ja-jp/microsoftteams/sharepoint-onedrive-interact
  • 21.
  • 22.
    引用および参考: OneDrive for Businessサイトのカスタマイズ https://docs.microsoft.com/ja-jp/sharepoint/dev/solution-guidance/customize-onedrive-for-business-sites OneDrive と SharePoint の共有を管理する https://docs.microsoft.com/ja-jp/onedrive/manage-sharing
  • 23.
    Office 365 Groups チーム Team BTeamA Team C Team BTeam A Team C Team A Team B Team C SharePoint ドキュメントライブラリと OneDrive for Business (OD4B) OD4B = つまりアーキテクチャとしては SharePoint ドキュメントライブラリ = OneDrive for Business アーキテクチャが同じなので同じ Graph API でアクセスできる
  • 24.
  • 25.
  • 26.
    具体的な説明の前に今回のシナリオ 今回の想定ユーザー • 不動産関係で物件を探している営業さん • 好みのロケ地を探しているテレビ番組制作会社の人 •綺麗な風景を探している写真家、アーティスト など、何らかの「場所」を探している人が偶然に見つけた 場所を写真に撮り、GPS情報とともに保存、チームに共有 する
  • 27.
  • 28.
    チャンネルの SharePoint ドキュメントライブラリにExcel を保存 • 画像では既にデータが入ってますが、データはもちろん不要 • 保存したいデータのテーブルを作成 ⇒ 必要な列を定義して [テーブルとして書式設定] しておく
  • 29.
    PowerApps PowerApps トリガー Teamsのチームに紐づく SharePoint ドキュメントライブラリに保存されている Excel ファイルに PowerApps から入力されたデータを書き込む Excel ファイル JSON データ ドキュメントライブラリ Excel Online (Business) は OneDrive for Business 上の Excel のみならず SharePoint Online 上の Excel にもアクセスが 可能。 両方とも同じ Graph API を使用しているから。 Excel ファイルに書き込ま れたことを通知するための メッセージを投稿 https://docs.microsoft.com/ja-jp/connectors/excelonlinebusiness/ Azure Blob Storage
  • 32.
  • 33.
    データはお金と一緒。使わなければ意味がない! 自己紹介でお話した通り I’m an MVPfor Data Platform – Power BI なのです。 そう、ここまでまだ Power BI が出てきてないのです。 これはマズイ! というわけで Power BI 使います
  • 34.
    データはお金と一緒。使わなければ意味がない! 通常なら 1. Power BIDesktop でレポート作成 2. Poewr BI Desktop からレポート発行 ってやります。 が、今回はせっかく Teams を使っているので別の方法で レポートを Power BI service に作成します。 皆さんがあまり知らない(認知度の非常に低い)方法です
  • 35.
    Power BI Serviceから Excel ファイルを取り込む 1 2
  • 36.
    Power BI Serviceから Excel ファイルを取り込む 突然ですがここでクイズです OneDrive と SharePoint どちらを選択しますか?
  • 37.
    Power BI Serviceから Excel ファイルを取り込む 突然ですがここでクイズです OneDrive と SharePoint どちらを選択しますか? A.どちらでも可能ですが OneDrive の方が便利
  • 38.
    Power BI Serviceから Excel ファイルを取り込む
  • 39.
    Power BI Serviceから Excel ファイルを取り込む
  • 40.
    Power BI Serviceから Excel ファイルを取り込む
  • 41.
    データセットに対する設定の確認 参考: OneDrive または SharePointOnline に格納されているデータセットを更新する https://docs.microsoft.com/ja-jp/power-bi/refresh-desktop-file-onedrive
  • 42.
    あとは Power BIservice でレポートを作成するだけ 視覚化、フィールドを選択して 書式 (プロパティ) を設定していけばOK
  • 43.
    あとは Power BIservice でレポートを作成するだけ 視覚化、フィールドを選択して 書式 (プロパティ) を設定していけばOK 注意点: Power BI service では 新しい列、メジャーは作成できません 必要な列はすべてデータソース側で用意しておいてください (今回の場合は Excel で用意しておくこと)
  • 44.
    PowerApps PowerApps トリガー Teams のチームに紐づくSharePoint ドキュメントライブラリに保存されている Excel ファイルに PowerApps から入力されたデータを書き込む Excel ファイル JSON データ ドキュメントライブラリ Excel Online (Business) は OneDrive for Business 上の Excel のみならず SharePoint Online 上の Excel にもアクセスが 可能。 両方とも同じ Graph API を使用しているから。 Excel ファイルに書き込ま れたことを通知するための メッセージを投稿 https://docs.microsoft.com/ja-jp/connectors/excelonlinebusiness/ Azure Blob Storage Power BI Excel ファイルをデータソースにして接続
  • 45.
  • 46.
    Power Platform ×素敵な something 今日は以下の連携を紹介しました • Teams • SharePoint Online ドキュメントライブラリ • PowerApps • Flow • Power BI
  • 47.
    Power Platform ×素敵な something お伝えしたかったのは • Power Platform は隙間を埋める、縁の下の力持ち • だが表にもちょいちょい顔を出す • 連携元(先)である something の仕様理解が必要 • 難しいことをやる必要はなく、必要なことをやりましょう Power Platform 自体の仕様をよーく理解するのは当然として 相手を良く知らずに連携しちゃダメ、絶対。
  • 48.
    Power Platform ×something nice 以上です ありがとうございましたー!!!

Editor's Notes

  • #38 https://shimizumvp.sharepoint.com/sites/QiitaTest/ https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/ https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/General https://shimizumvp.sharepoint.com/sites/QiitaTest/Shared Documents/TestChannel