Forum Discussion

cschuster's avatar
cschuster
Brass Contributor
Mar 01, 2022

Sending a Teams Message from Power Automate with Mention is failing

Hi,

 

we are using a Power Automate Flow to send Teams Messages.

This Flow is activated from a http call.

But we are getting constant errors "Message mention text needs to be specified."

 

This is the json for the adaptive card:

 

{
  "contentType": "application/vnd.microsoft.card.adaptive",
  "content": {
    "type": "AdaptiveCard",
    "body": [
      {
        "type": "TextBlock",
        "text": "Hi <at>John</at>"
      }
    ],
    "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
    "version": "1.4",
    "msteams": {
      "entities": [
        {
          "type": "mention",
          "text": "<at>John</at>",
          "mentioned": {
            "id": "{Office365 User GUID}",
            "name": "John Doe"
          }
        }
      ]
    }
  }
}

 

Any Ideas how to solve this?

for the User Id i tried my email and also the guid from the Graph Api Explorer...

 

Resources