Blue Prism と Power Platform を統合する(BP→PA編)
年末らしく、去年の記事とか、
去年の仕事のメールとか、
いろいろと振り返ってみた。。
・・・
- Blue Prism から Power Automate を呼ぶ(設計)
- Blue Prism から Power Automate を呼ぶ(実装)
- Blue Prism から Power Automate を呼ぶ(やってみた)
- まとめ
Blue Prism から Power Automate を呼ぶ(設計)
初級編ということで、簡単な連携を考えてみます。
- Blue Prism から REST API 経由で Power Automate を呼ぶ
- Power Automate が HTTP Request を受け取る
- Power Automate が HTTP Request の Body から文字列を取り出して Teams に送る
Blue Prism から Power Automate を呼ぶ(実装)
Power Automate 側の実装
まず、Power Automate 側から。フローの全体像はこんな感じ。
ステップは HTTP 要求の受信時とメッセージを投稿する(V3)(プレビュー)のみ。
HTTP 要求の受信時の中身はこんな感じ。
シンプルな JSON を受ける設定にしています。こんなやつ👇
{"input":"ここに入力文字を入れる"}
これを受けて、メッセージを投稿する(V3)(プレビュー)の設定はこんな感じ👇
チームやチャネルは適当に選んでます。
メッセージはこんな感じです。
<p>Hello <b>Power Automate</b> from <b>Blue Prism</b>☆</p>
<p>input data is: @{triggerBody()?['input']} </p>
Blue Prism 側の実装
次に Blue Prism 側。まずは Web API の設定
設定するのはベースURLと、こまごまとしたものです。
パラメータを設定することで、プロセスからデータを Power Automate に渡せます。
HTTP Request の Body は、以下のように設定します。
パラメータをちゃんと埋め込んでいます。
{"input":"[input]"}
ヘッダーには、Content-Type を application/json に設定しています。
Web API を設定したら、プロセスから呼べばOKです。
今回は以下のテキストを Web API に入力しています。
"Blue Prism からのメッセージ◮"
Blue Prism から Power Automate を呼ぶ(やってみた)
やってみた。Blue Prism のプロセスを起動して。。
Power Automate 側の画面は、、成功。
Teams を見てみると・・・
やったぜ。
まとめ
- Blue Prism から Power Automate のフローを呼んでみた。
- 今回は REST API でサクッと連携。Blue Prism から Power Automate を経由して Teams に書き込み。
- Power Automate をアダプタ代わりに使うことで、Blue Prism のユースケースが広がる(?)
ら、来年はもっと成長しちゃうんだから!!
(皆様、良いお年を☆彡)