web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to mention a user ...
Power Automate
Answered

How to mention a user and a channel inside an adaptive card sent to teams?

(1) ShareShare
ReportReport
Posted on by 46
Hi Folks,
 
I'm trying to send a card to a teams channel via power automate. I also need to mention another channel in the same team and one or more users. I couldn't find a method to send a message and adaptive card together, so I'm trying to include the message as part of adaptive card itself, but it needs the mention as well. Which is not working so far with below syntax given by chat gpt:
 
{
  "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
  "type": "AdaptiveCard",
  "version": "1.4",
  "body": [
    {
      "type": "TextBlock",
      "text": "Hello <at>General</at>! Here is your update."
    }
  ],
  "msteams": {
    "entities": [
      {
        "type": "mention",
        "text": "<at>General</at>",
        "mentioned": {
          "id": "19:channelID@thread.skype",
          "name": "General"
        }
      }
    ]
  }
}
 
Above code is throwing resource not found error:

Can any one help?

Thanks
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,136 Super User 2026 Season 1 on at
     
     
    Hope this can give you answers to all of queries you have :)
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

  • Verified answer
    rbn_neu Profile Picture
    46 on at
     
    Thank you for sharing the article. The last method mentioned in that blog was in line with my requirement. Unfortunately, the mention (for channel and user) was not working in the output:
     
     
    It could've been a miss from my end, but the usage of graph API gave me the idea to use same to include both a message and an adaptive card together in the chat (which is what I needed in the first place). So below code is working fine for me so far (body of the graph API request):
     
    {
        "subject": "Adaptive Cards test",
        "body": {
            "contentType": "html",
            "content": "<p><at id=\"1\">Gen</at> - Please join me in congratulating <at id=\"0\">Robin Roy</at></p><attachment id=\"d9ca1229-c4bf-48d1-b43a-4e54f5e42e39\"></attachment>"
        },
        "attachments": [
            {
                "id": "d9ca1229-c4bf-48d1-b43a-4e54f5e42e39",
                "contentType": "application/vnd.microsoft.card.adaptive",
                "contentUrl": null,
                "content": "{\r\n  \"$schema\": \"http://adaptivecards.io/schemas/adaptive-card.json\",\r\n  \"type\": \"AdaptiveCard\",\r\n  \"version\": \"1.6\",\r\n  \"body\": [\r\n    {\r\n      \"type\": \"TextBlock\",\r\n      \"id\": \"MentionTextBlock\",\r\n      \"text\": \"Fun with mentions!\",\r\n      \"weight\": \"Bolder\",\r\n      \"size\": \"Medium\"\r\n    },\r\n    {\r\n      \"type\": \"TextBlock\",\r\n      \"text\": \"This is user mention. Hi: <at id=\\\"0\\\">Robin Roy</at>!\",\r\n      \"size\": \"Medium\"\r\n    },\r\n    {\r\n      \"type\": \"TextBlock\",\r\n      \"text\": \"This is channel mention. Hello: <at id=\\\"1\\\">Gen</at>!\",\r\n      \"size\": \"Medium\"\r\n    } \r\n  ]\r\n}",
                "name": null,
                "thumbnailUrl": null
            }
        ],
        "mentions": [
            {
                "id": 0,
                "mentionText": "Robin Roy",
                "mentioned": {
                    "user": {
                        "id": "User ID",
                        "displayName": "Robin Roy",
                        "userIdentityType": "aadUser"
                    }
                }
            },
            {
                "id": 1,
                "mentionText": "Gen",
                "mentioned": {
                    "conversation": {
                        "id": "Channel ID",
                        "displayName": "Gen",
                        "conversationIdentityType": "channel"
                    }
                }
            }
        ]
    }
     
    Graph endpoint - POST /teams/{team-id}/channels/{channel-id}/messages
     
    Output of request:
     
     
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard