Forum Discussion
MoezT
Mar 04, 2022Copper Contributor
Bots posted a new message
We are in the process of consolidating a number of different alerting systems into Teams. This requires us to interact with the incoming webhook of channels. What we're finding is that on macOS/Windo...
amelieluecke
Jul 19, 2024Copper Contributor
After Microsoft deprecated Webhooks I am facing the same issue. Is there still no update on this?
MoezT
Jul 19, 2024Copper Contributor
amelieluecke This was technically resolved through the Teams app team. Having said that, I haven't had a chance to test the new Power Automate webhook setup. Does that reintroduce the same behaviour?
- amelielueckeJul 22, 2024Copper Contributor
MoezT Unfortunately yes. With the new Workflows setup it is necessary to use Adaptive Cards to post messages to Teams channels. I use the predefined workflow 'Post to a channel when a webhook request is received'. The channel posts itself look nice but the notifications all look the same:
My Adaptive Card definition looks like the following. I haven't found a way to set the notifications text. Setting "summary" doesn't change anything.{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "contentUrl": None, "content": { "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.2", "body": [ { "type": "TextBlock", "size": "medium", "weight": "Bolder", "color": "Accent", "text": f"{title}", "style": "heading", "wrap": True }, { "type": "TextBlock", "text": f"{alert.message}", "separator": True, "wrap": True }, ] } } ] }