「Run Power App」アクションを使ったPower Automate for desktopとPower Appsアプリの連携方法のご紹介

>100 Views

July 17, 26

スライド概要

「Power Automate for desktop|Power Apps 連携&アップデート情報」(RPACommunity主催)の登壇資料です。
(2026年7月17日オンライン開催)

profile-image

きぬあさと申します。 VBAやOffice スクリプト、Power Automate for desktop等について情報発信しております。

シェア

またはPlayer版

埋め込む »CMSなどでJSが使えない場合

ダウンロード

関連スライド

各ページのテキスト
1.

RPACommunity 「Run Power App 」アクションを使ったPower Automate for desktop とPower Appsアプリの 連携方法のご紹介 2026.7.17

2.

注意事項 1. 本セッションではPower Automate for desktopのことをPADと略します。 2. 本セッションの資料はPAD バージョン 2.70 に基づいて作成しています。今後のバージョンアップによって 画面等が変更される可能性があります。 3. 本セッションの資料は「Power Fx が有効」オプションがオフ前提になっています。 4. 本セッションの内容はPower Automate Premium環境で検証・動作確認を行っています。 5. 本日の資料はセッション終了後に公開予定です。イベントページから資料一覧をご確認ください。 2

3.

「Run Power App」アクション

4.

「Run Power App」アクション(1) 4 • PAD バージョン 2.68 で「Run Power App」アクションが追加され、PADのフ ローから直接Power Appsのアプリを実行できるようになりました。 • 2026年7月(バージョン 2.70)時点ではまだプレビュー版の機能 • Microsoft アカウントでは使用不可 Microsoft アカウントだと アクションが表示されない

5.

「Run Power App」アクション(2) <要件と利用条件> • PAD バージョン 2.68 以降 • クラウドの利用条件:パブリック クラウドでのみ利用可能 <前提条件> • PAD バージョン 2.68 以降がインストールされていること • 同じ環境内の Power Apps にアクセスできること • アプリから呼び出し可能なPADのサブフローがあること • Microsoft Edge WebView2 ランタイムがインストールされていること ※ 実行時に Power Apps アプリを表示するために必要 【参考】Power Platform actions - Power Automate https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/power-platform? WT.mc_id=M365-MVP-4029057 5

6.

Run Power Appアクションの使用例

7.

Run Power Appアクションの使用例(1) 1. (PAD側)サブフロー「GetCustomerData」を追加します。 7

8.

Run Power Appアクションの使用例(2) 2. (PAD側)入力変数「CustomerId」を追加します。 8

9.

Run Power Appアクションの使用例(3) 3. (PAD側)出力変数「OutCustomerData」を追加します。 9

10.

Run Power Appアクションの使用例(4) 4. (PAD側)サブフローに「変数の設定」アクションを追加し、出力変数OutCusto merDataの値を「 hoge%CustomerId% 」にします。 10

11.

Run Power Appアクションの使用例(5) 11 5. (PAD側)サブフローに「Run Power App」アクションを追加し、 「Power App を選択する」から「新しいアプリの作成」を選択します。

12.

Run Power Appアクションの使用例(6) 6. ブラウザーが立ち上がり、下図の画面が表示されるので「Designer を開く」を 選択します。 12

13.

Run Power Appアクションの使用例(7) 7. Power Apps Designer(Power Apps Studio)画面が表示され、Power Appsアプ リを作成できるようになります。 13

14.

Run Power Appアクションの使用例(8) 8. (Power Apps側)結果を表示するためのテキスト入力「TextInput1」と、フロー を実行するためのボタン「Button1」を配置します。 14

15.

Run Power Appアクションの使用例(9) 9. (Power Apps側)設定」から分かりやすい名前を付けてアプリを保存します。 15

16.

Run Power Appアクションの使用例(10) 10. (Power Apps側)アプリ保存後、一度デザイナー画面を閉じます。 11. (PAD側) 「Run Power App」アクションの編集画面に戻り、「最新の状態に更 新」ボタンをクリックした後、作成したPower Appsアプリを選択します。 16

17.

Run Power Appアクションの使用例(11) 12. (PAD側) 「アプリを開く」ボタンをクリックし、再びPower Appsアプリの編集 画面を開きます。 17

18.

Run Power Appアクションの使用例(12) 13. (Power Apps側)Button1のOnSelectの式を下記のように設定します 。 Set(globalVariable, PowerAutomateDesktop.GetCustomerData("ABCDE")) ※この式は「ABCDE」を引数としてPADのサブフロー(GetCustomerData)を実行し、結果(出力 変数)をPower Appsアプリのグローバル変数「globalVariable」の値として格納することを表し ています。 18

19.

Run Power Appアクションの使用例(13) 14. (Power Apps側)TextInput1には変数「globalVariable.OutCustomerData」の 値が表示されるようにしておきます。 • • • デスクトップのPower Automateは、すべての値を文字列として返します。 Power Appsで、これらの値を適切な型 にキャストします。 デスクトップ フロー サブフローを呼び出すと、 すべての出力変数 が 1 つのレコード値として返されます。 個々の出力変数には、そのレコードのプロパティとしてアクセスできます。 https://learn.microsoft.com/ja-jp/power-automate/desktop-flows/actions-reference/power-platform? WT.mc_id=M365-MVP-4029057#step-4-return-values-to-power-apps より 19

20.

Run Power Appアクションの使用例(14) 20 15. (Power Apps側)アプリを保存・公開した後はデザイナー画面を閉じて構いません。 なお、更新が反映されるまでに時間がかかる場合があります。

21.

Run Power Appアクションの使用例(15) 16. (PAD側)再びPADの「Run Power App」アクションの編集画面に戻り、「保 存」ボタンをクリックします。 21

22.

Run Power Appアクションの使用例(16) 22 17. (PAD側)フローを実行すると、PAD上でPower Appsアプリが実行され、意図し た通りに出力変数の値がPower Appsアプリ上に表示されることが確認できます。

23.

Run Power Appアクションの使用例(17) DEMO 23

24.

Run Power Appアクションの活用例 ~ レガシーアプリとの連携 ~

25.

Run Power Appアクションの活用例(1) • Power Appsアプリ 25

26.

Run Power Appアクションの活用例(2) • Power Appsアプリで使用しているデータ テーブル 26

27.

Run Power Appアクションの活用例(3) 27 • レガシーアプリ(顧客管理) Power Appsアプリに転記する (DataGrid)

28.

Run Power Appアクションの活用例 DEMO 28

29.

Run Power Appアクションの活用例(4) • PADメインフロー 29

30.

Run Power Appアクションの活用例(5) • PADサブフロー(GetCustomerData) ※出力変数 %{ 'Customer': DataFromTable }% ※カスタム オブジェクト 30

31.

Run Power Appアクションの活用例(6) • 31 Power Appsアプリ:ボタンクリックでPADから受け取った顧客一覧をDataverseテーブルへ1件ずつ登録 <処理内容> PADから顧客情報(JSON)を取得 ↓ Customer配列を取得 ↓ 1件ずつ値を取得 ↓ Dataverseテーブル「サンプル顧客情報」に登録

32.

Run Power Appアクションの活用例(7) • 「PowerAutomateDesktop.GetCustomerData().CustomerObject」 32 { でPower Appsアプリに返った値: } "Customer": [ { "ID": "1001", "Account Name": "ファブリカム株式会社", "Primary Contact": "ファブリカム経理部", "Contact Email": "[email protected]" }, { "ID": "1002", "Account Name": "株式会社リットウェア", "Primary Contact": "山下 太郎", "Contact Email": "[email protected]" }, { "ID": "1003", "Account Name": "プローズウェア株式会社", "Primary Contact": "吉田 武史", "Contact Email": "[email protected]" }, { "ID": "1004", "Account Name": "テイルスピントイズ株式会社", "Primary Contact": "原口 恭子", "Contact Email": "[email protected]" }, { "ID": "1005", "Account Name": "株式会社ウィンチップトイズ", "Primary Contact": "鈴木 大貴", "Contact Email": "[email protected]" } ]

33.

まとめ

34.

まとめ • Run Power AppアクションはPAD→Power Appsアプリ、Power Appsアプリ →PADはクラウドフローを使用 • PAD→Power Appsアプリに複数の値を渡すときはカスタム オブジェクトまたは リストを使う。 ※Power Appsでは「ParseJSON」を使用 • Power Appsアプリ側でPADのサブフローを実行するのはボタンのOnSelect、も しくはコントロールのイベント プロパティ(OnChange など)を使用 • Power Appsアプリ更新時に変更が反映されない → しばらく待つ!もしくはRun Power Appアクションを再更新 34

35.

参考資料

36.

参考資料 1. Power Platform actions - Power Automate https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/power- platform?WT.mc_id=M365-MVP-4029057 2. Power Automate for desktopのフローから直接Power Appsのアプリを実行できるようになりました。|kinuasa https://note.com/kinuasa/n/n92966ed8c683 36