Sonya
Sonya

Reputation: 1

Power Automate AdaptiveCard Feed and mobile notifications only say Card

I have a Power Automate workflow that posts messages to a Teams channel. It posts to the channel correctly, but the Feed and the mobile notifications only say Card. I've tried adding the "summary": property above the body section, but that didn't do anything. I'm using the "Post card in a chat or channel" action. Is there another property that can be used?

Post a card in a chat or channel

enter image description here

Teams Feed notification

enter image description here

Upvotes: 0

Views: 524

Answers (1)

vector818
vector818

Reputation: 21

I know a lot of time has passed, but this issue bothered me for a while until I came up with a workaround. This thread used to pop up as one of the first results when searching the internet for a solution, so for future seekers, here’s the workaround:

Instead of using a single "Post an adaptive card to chat or channel" block, you need to split the MS Teams message sending into two steps:

  1. Step one uses the "Post a message to a chat or channel" block. This step will send a regular text message. Whatever is entered in the "Message" field will appear in the notification in MS Teams. The block should be configured as shown in the screenshot: ScreenShot with configuration of block in 1st step
  2. Add a second step using the "Update an adaptive card in a chat or channel" block. The block should be configured as shown in the screenshot: ScreenShot with configuration of block in 2nd step
  3. In the Message ID field of the "Update an adaptive card in a chat or channel" action, use the value returned by the action from the first step, so that PowerAutomate knows exactly which message to update. To add the Message ID, use dynamic content by clicking the button as shown in screenshot: ScreenShot with instructions on how to add dynamic content
  4. Then find the reference to the "Post a message to a chat or channel" action and use the Message ID as shown in the screenshot: ScreenShot with instructions on how to navigate to Message ID

The final result regarding the notification looks like this: Final notification

As you can see, the expected text has appeared in the notification, and Teams interprets this post as a regular text message. However, the message is edited into an adaptive card and finally looks like this: Final result

As shown, the post has been edited and the adaptive card is displayed. Of course, the final look of the adaptive card depends on its individual design.

Upvotes: 0

Related Questions