Forum Discussion
Microsoft Flow: @mention action not working for Teams reply
Hello Julian12 ,
Sorry for a delayed response, were you able to get it working ? I have not tested 'mention channel' with flow but it should be achievable using Graph beta. Hopefully you have already found Denis' blog, if not here is a reference: http://www.expiscornovus.com/2019/05/29/mention-a-channel-with-flow/
To use the logic mentioned in the blog, you will have to setup graph access to the environment first, basically just navigate to graph explorer: https://developer.microsoft.com/en-us/graph/graph-explorer set the mode to beta, play around with adding the right permissions to allow an http POST possible to a teams channel, permissions reference for graph: https://docs.microsoft.com/en-us/graph/permissions-reference
Once you have graph setup properly you should be able to post a message from within graph explorer, use the navigation pane on left to choose "post in channel" the query should look like this: https://graph.microsoft.com/beta/teams/%7Bteam-id%7D/channels/%7Bchannel-id%7D/messages
If you are able to post via graph explorer like this, then you have to just simply use the same query https://graph.microsoft.com/beta/teams/%7Bteam-id%7D/channels/%7Bchannel-id%7D/messages in a http post message as per the blog.
This is still in Beta and i have not tested it, so cant assure that it would work great, but surely it looks possible and this is all we have for now.
Thanks
Hi harveer singh,
currently it's only working for a single user.
I already tried this method with a HTTP request but it seems that I need a premium flow license to use this action, which I don't have. So this is stuck again.
Connecting to graph API and doing things is no problem, I already tested a few things with it and they working fine.
I will have a look later again, currently enjoying my holidays 🙂
Have a nice week!