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 / Posting to a Team with...
Power Automate
Unanswered

Posting to a Team with a channel mention not working for some teams

(0) ShareShare
ReportReport
Posted on by
This one has been driving me crazy, so thought I would throw it out there to see if anyone had any guidance or ideas.
There are many ways in which you can @ mention someone from a flow (see the myriad of ways documented here). Depending on if you want to mention a person, a channel, or a tag, there are different methods. For my particular use case, I'm mentioning a channel and a user in the post, so I'm using the Invoke an HTTP request using Azure AD action. This allows you to use the MS graph API to post the message to the channel and do all your mentions in one fell swoop.
 
To do this, you use the team ID and the channel ID to build the URL of your request. So basically https://graph.microsoft.com/v1.0/teams/TEAMID/channels/CHANNELID/messages. For channel ID, it typically looks like the following: xxx@thread.tacv2. However, if the team was created awhile ago, it will look like this: xxx@thread.skype. My flow works perfectly when I set it up to run on my test team (which has the thread.tacv2 channel ID format), but when I set it up to run to another team (that has the thread.skype channel ID format), I get Action 'Invoke_an_HTTP_request' failed: NotFound error with the flow. Things I've tried:
 
  • Doublechecked all the ID's. They are correct.
  • Just changed the thread.skype channel ID to be a tacv2 one, didn't work.
  • Tried changing from v1.0 of the graph API to the beta one, didn't work.
  • Tried the other methods. They work with user mentions, but I still can't do the channel mention that I can with the HTTP request action.
I'm not sure the thread.skype/tacv2 is the issue, but that's the only difference between the two Teams that I can find where there is a difference. Outside of creating a new team (not an option, the existing departmental team has legacy information that we would not want to lose), can anyone think of a way around this? Or am I missing something in trying to pinpoint the cause of the problem? My eternal gratitude to the kind person that can fix this.
 
Edit to add http request:

 

 

{
 "subject": "Happy Birthday to @{items('Apply_to_each')?['Person/DisplayName']}",
 "body": {
 "contentType": "html",
 "content": "<img src=\"@{outputs('Giphy_URL')}\" width=\"275\" height=\"250\" style=\"padding-top:5px\"><br><br><at id=\"1\">CHANNELNAME</at> Guess who's birthday it is? Please join me and wishing <at id=\"0\">@{items('Apply_to_each')?['Person/DisplayName']}</at> a happy birthday.<br><br>@{outputs('Pick_BdayMessage')}<br><br> <p style=\"font-size: 10px\">Note: This is an automated message, it did not actually come from Me.</p>"
 },
 "mentions": [
 {
 "id": 0,
 "mentionText": "@{items('Apply_to_each')?['Person/DisplayName']}",
 "mentioned": {
 "user": {
 "displayName": "@{items('Apply_to_each')?['Person/DisplayName']}",
 "id": "@{variables('BdayMention')}",
 "userIdentityType": "aadUser"
 }
 }
 },
 {
 "id": 1,
 "mentionText": "CHANNELNAME",
 "mentioned": {
 "conversation": {
 "id": "xxx@thread.skype",
 "displayName": "CHANNELNAME",
 "@odata.type": "microsoft.graph.teamworkConversationIdentity",
 "conversationIdentityType": "channel"
 }
 }
 }
 ]
}​

 

 

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 292 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 128

Last 30 days Overall leaderboard