こんなのが表示されるようになった
Action Required:
O365 connectors within Teams will be deprecated and notifications from this service will stop.
Learn more
about the timing and how the Workflows app provides a more flexible and secure experience. If you want > to continue receiving these types of messages, you can use a workflow to post messages from a webhook > request.
Set up workflow
https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
2024 年 8 月 15 日より、Microsoft Teams の Office 365 コネクタ機能が廃止されます。
スケーラブルで柔軟性があり、安全な方法で Teams との間で情報を中継するソリューションとして、Power Automate ワークフローをお勧めします。
とのこと。
ワークフロー作成
- Teamsでチャネルを右クリックし、「ワークフロー」を選択
- 「Webhook要求を受信するとチャネルに投稿する」を選択
- 名前を入力し、「ワークフローを追加する」をクリック
- 「ワークフローが作成されました。POST要求を行って実行してください」の下に記載のURLに対してPOST実行するようにする
- 設定したチャネルがプライベートチャネルだからか、投稿時にエラーになった
Workflowsで作成したワークフローを開いて「投稿者」を「フロー ボット」→「ユーザー」に変更したら投稿できるようになった - Adaptive Cards の使い方はこの辺を参考にする
https://adaptivecards.io/samples/