cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jonathancavey
Helper I
Helper I

Mentioning a Channel in Teams using Flow

Hello, I am trying to post a message to a Teams Channel and '@' the channel in the message. 
I have accomplished this using the 'Invoke a HTTP Request' and following the steps found here: http://www.expiscornovus.com/2019/05/29/mention-a-channel-with-flow/

The problem I am running into is that these messages post as coming from a user (me)
I would like to post and '@' the channel from a bot / adaptive card. 

Does anyone know if this is possible, and if so how to?

9 REPLIES 9
efialttes
Super User III
Super User III

Hi!

Did you consider the new action block for this purpose?

https://docs.microsoft.com/en-us/connectors/teams/#get-@mention-token-for-a-user

Havent tested myself yet, but hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@efialttes I am not sure if that will work, could you explain a little more? 
I have it working posting from a user, but I want it to come from a bot. So I have the IDs and all of that.

Hi!

According to this excellent article, it seems you can also use it not only in conventional posts but also inside Adaptive Cards

  • Post a message (V3)
  • Post a reply to a message (V2)
  • Post your own adaptive card as the Flow bot to a channel
  • Post an Adaptive Card to a Teams channel and wait for a response

https://poszytek.eu/en/microsoft-en/office-365-en/powerautomate-en/mentioning-in-microsoft-teams-via...

 

Hope this helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



@efialttes I am attempting to '@' a channel not a user

OMG! sorry for your time testing my suggestion, and let's hope somebody else can point you to a good solution!

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Yeah, I can '@' the channel. But it is posting from a user profile. I would like it post from a bot/adaptive card.

Thank you for reaching out 

Wait wait wait... did you try invoking the Graph API? I am afraid the action block is premium.

THere is also a workaround published by John Liu some time ago, not sure if it is still working

https://powerusers.microsoft.com/t5/General-Power-Automate/Mention-a-MS-Teams-Channel-using-Power-Au...

 



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



This is what I have currently. 

jonathancavey_0-1600363779687.png

 

Hi again!

Just checking

https://ashiqf.com/2020/02/09/mention-user-channel-in-teams-using-ms-graph-api/

THe only difference I see so far is this one

<at id ='0'>

Hope his helps



Each time you click on any of our inspiring answers 'Thumb up' icon...
...an ewok scapes from the stormtroopers.

Be grateful, Thumbs up! Save the Galaxy for free!


Escribo sobre Power Automate en:
https://medium.com/anyone-can-automate/

Proud to be a Flownaut!



Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (23,584)