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 / 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:
I have the same question (0)

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