1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Power Automate から Teams へ Adaptive Card を Chat bot を使って投稿する

Posted at

Power Automate で HTML が使えなくなった?

らしい。
参考:https://qiita.com/yukimatsu/items/286be09e4b80cfd20478

代わりにAdoptive Card を使う

慣れると簡単に使えるので、HTML と JSON どちらもできるようになるのがオススメ

Power Automate で Chat bot を設定する

image.png

Post your own adaptive card as the Flow bot to a user を使うのがキモ

間違えて Message post as flow bot を使っていてハマった。

Adaptive card のJSON を作成する

AdoptiveCardScheme例
{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "text": "Sample file was uploaded"
        }
    ],
    "actions": [
        {
            "type": "Action.OpenUrl",
            "title": "Link to Forms",
            "url": "お好きなように"
        }
    ]
}

Adaptive card の参考

Adaptive card の内容をPower Automate のアクションに記入する

image.png

1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?