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 / Mention everyone in a ...
Power Automate
Unanswered

Mention everyone in a Teams Channel

(0) ShareShare
ReportReport
Posted on by 438
I want to create a broadcast in Teams when an Item in a SharePoint List is updated. I would like to mention everyone in the channel that I post this in. I originally started to resolve this in Power Apps but couldn't get a solution that worked and I thought maybe using the Post message in chat or channel action.
 
 
Categories:
I have the same question (3)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
    You can mention the channel, you can use the Send an HTTP request action for that.

    Below is an example
     
    URI
    https://graph.microsoft.com/v1.0/teams/@{variables('TeamId')}/channels/@{variables('ChannelId')}/messages
     
     
    Body
     
    {
        "body": {
        "content": "This is Flow mention channel test, <at id=\"0\">@{variables('ChannelName')}</at>",
        "contentType": "html"
                },
        "mentions": [
                    {
                    "id": 0,
                    "mentionText": "@{variables('ChannelName')}",
                    "mentioned": {
                                    "conversation": {
                                                        "id": "@{variables('ChannelId')}",
                                                        "displayName": "@{variables('ChannelName')}",
                                                        "conversationIdentityType": "channel"
                                                    }
                                }
                    }
                    ]
    }

     
    Below is the test result
     


    I have also written a blog about this approach back in 2019 (which used different actions, nowadays you can use this Send an HTTP request instead):
    https://www.expiscornovus.com/2019/05/29/mention-a-channel-with-flow/
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • nshaw75 Profile Picture
    438 on at
    Hi @expicornovus 
     
    Many thanks for this. It has given hope, although I am pretty hopeless with these things :D

    I am not sure how i would initialize the variables for the team Channel Name. I would (if I were doing this to a sharepoint list) would use a get items action so I could find the information for the variable. I am therefore getting an error which says Invalid Variable 
     
     
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at
    Here are a couple of actions which you can use to retrieve those values for the variables. You can use a Get Team action to return the Team Id and a List channels (and a Filter Array) to find the correct channel and its id.

    In the last variable an expression is used to get the ChannelId value:
    first(body('Filter_array'))['id']
     
     
     
     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, Bluesky profile or Youtube Channel
  • ShehanMP Profile Picture
    81 on at
    Can we mention everyone in the group like below?

  • Suggested answer
    Wilchin Dipolog Profile Picture
    8 on at
    Just figured out how to mention @Everyone in a Teams group chat using Power Automate. Thought I’d share it: How to mention users (and @Everyone) in a Teams group chat from Power Automate - DEV Community

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard