Mention a team with a flow

Today I had a couple of queries about mentioning in Microsoft Teams. I revisited the Mention a channel with flow post because of the Invalid request body was sent error. And I also created this new blog about team mentioning.

Original request

I would like to know if it is possible to mention a team in a Teams channel via Power Automate just like the screenshot below.

@mention a Microsoft Teams group in Power automate

teamchannelmentioning

Invoke HTTP request approach

Turns out this can still be done by using the Invoke an HTTP request approach.

1. Add an Invoke an HTTP request action. Make sure that in the connection of the action https://graph.microsoft.com is specified as the base resource url.

2. Use the Send chatMessage in channel method from the Graph API .

Use the code snippet for the body of the request. Replace the IT team name and the id of the team by your name and id.

mentionateaminsteadofachannel

Happy testing!

You may also like...

5 Responses

  1. Hubert says:

    Do we know if/when we could generate an @-mention for a custom tag?

  2. Dennis says:

    @Hubert, haven’t seen that scenario working before.

    But I will have another try at it since the schema slightly changed recently 🙂

  3. Dennis says:

    @Hubert, it should be possible by setting the tag property in the json. I posted another blog about this:
    https://www.expiscornovus.com/2021/07/01/mention-a-tag-with-a-flow/

  4. Hubert says:

    Yay!

    Too bad this one is a Premium connector though ? I’m on an EDU plan with possibly no hope of really, ever going on to a Premium plan.

  1. July 1, 2021

    […] Mention a team with a flow […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.