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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Channel/Teams mention ...
Power Automate
Unanswered

Channel/Teams mention in Adaptive Cards

(1) ShareShare
ReportReport
Posted on by 12

I've set up a MS Flow Bot to send an Adaptive Card to a Teams channel. However, I've only managed to get an @mention work with singular persons and I would like to mention the entire channel or team.

 

I'd be fine with a solution that adds a comment to the Adaptive Card post with the team/channel mention, if that exists.

 

I'm feeling kind of lost after several hours of experimenting.

Categories:
I have the same question (0)
  • ChristianAbata Profile Picture
    8,951 Most Valuable Professional on at

    hi @Nedko_Chulev  please see this post maeby could help you

     

    https://powerusers.microsoft.com/t5/Building-Flows/Ms-Teams-Mentions-in-adaptive-cards/td-p/520520

  • Nedko_Chulev Profile Picture
    12 on at

    Thank you for your answer, @ChristianAbata !

     

    Unfortunately the question you're referring to only describes a way to mention individuals. Granted, I used exactly the method described in that post and it works flawlessly for individuals.

     

    Maybe I'm misunderstanding something but using the same method hasn't been working for me when I try to mention an entire team or a channel. Which ID am I supposed to use in place of the 8:orgid of a person, when trying to reference a team/channel?

     

    Cheers

  • MikeBA19 Profile Picture
    4 on at

    I am still trying to figure this out as well. Have you had any luck? I can only mention individuals right now.

  • Nedko_Chulev Profile Picture
    12 on at

    Nope, unfortunately, I couldn't find any official solution.

     

    The closest I've gotten to a solution was this post: http://www.expiscornovus.com/2019/05/29/mention-a-channel-with-flow/

     

    Unfortunately I do not have the rights in my company to execute it. But maybe it will help you.

  • fishmangal011 Profile Picture
    21 on at

    Hi all,

     

    Any progress on this?  I’m trying to send an adaptive card to a team group (@general). 

    please help?? 

  • Community Power Platform Member Profile Picture
    on at

    I figured out how to do it, granted I'm doing it through AWS Lambda as SNS drives the notifications for CodeCommit Pull request updates, but it might still work for your purposes.

     

    I set up an Incoming Webhook to my team's channel that is specifically used for developers and am using this JSON payload in the POST request:

     

    {
     "type": "message",
     "attachments": [
     {
     "contentType": "application/vnd.microsoft.card.adaptive",
     "content": {
     "type": "AdaptiveCard",
     "body": [
     {
     "type": "TextBlock",
     "text": "Hi <at>General</at>"
     }
     ],
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.0",
     "msteams": {
     "entities": [
     {
     "type": "mention",
     "text": "<at>General</at>",
     "mentioned": {
     "id": "CHANNEL_ID",
     "conversationIdentityType": "channel",
     "conversationIdentityType@odata.type": "#Microsoft.Teams.GraphSvc.conversationIdentityType",
     }
     }
     ]
     }
     }
     }]
     }

     

     

    The CHANNEL_ID is the URL decoded ID of the channel. I found this by going to the channel you want to send the notifications to in MS Teams, click on the three dots in the upper right corner, and select "Get link to channel". The way the URL is formatted is:

     

    https://teams.microsoft.com/l/channel/CHANNEL_ID/Notifications?groupId=UUID&tenantId=UUID

    and the CHANNEL_ID will be in the format of "<some numbers>:<some more numbers>@thread.tacv2". Others have a similar format, but the ending is "@thread.skype".

     

    Hope this helps! It sure as hell helped me.

  • plotiv Profile Picture
    2 on at

    How would I go about mentioning the Team?

  • chrichaco Profile Picture
    3 on at

    awesome, thank you! I have not tried this yet, but have been searching for this answer all day and tried many other failed approaches and this look like a winner. I would like to do this same type of notification using the "tag" and I am guessing it is defined somewhere, but where are the msteams/entities object types defined?

    I have been struggling to find them. I tried looking in the adaptive card schema but that was a dead end? So far, I have just been working off of examples and trying them out, but you seem to have found the holy grail.

  • Community Power Platform Member Profile Picture
    on at

    I mean, if you mention General in a Teams channel, it's basically like mentioning the Team.

  • Community Power Platform Member Profile Picture
    on at

    I've tried exactly the same, also same code as above, but still no channel-mention, just getting channel name as flat text.

     

    CHANNEL_ID is "19:XXXXXXXXXXXXXXXXXXXXX@thread.tacv2"

    Above code as connectorCard:

     

    $ curl -H 'Content-type: application/json' -d "${connectorCard}" ${WEBHOOK_URL} 

     

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard