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

Community site session details

Session Id : i8tNV0oEQxaKb4f9gnWWqv
Power Automate - Building Flows
Answered

Mention everyone in a Teams Channel

Like (0) ShareShare
ReportReport
Posted on 26 Feb 2025 07:25:12 by 423
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.
 
 
I have the same question (1)
  • ShehanMP Profile Picture
    76 on 22 Sep 2025 at 13:42:11
    Mention everyone in a Teams Channel
    Can we mention everyone in the group like below?

  • Verified answer
    Expiscornovus Profile Picture
    32,379 Most Valuable Professional on 26 Feb 2025 at 14:45:46
    Mention everyone in a Teams Channel
    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
  • nshaw75 Profile Picture
    423 on 26 Feb 2025 at 12:42:05
    Mention everyone in a Teams Channel
    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 
     
     
  • Expiscornovus Profile Picture
    32,379 Most Valuable Professional on 26 Feb 2025 at 11:25:17
    Mention everyone in a Teams Channel
    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

MS.Ragavendar – Community Spotlight

We are honored to recognize Ragavendar Swaminatha Subramanian as our September…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 736 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 396 Moderator

#3
Power Apps 1919 Profile Picture

Power Apps 1919 339

Last 30 days Overall leaderboard
Loading started
Loading complete