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 / Need help with a flow....
Power Automate
Unanswered

Need help with a flow. Conditions are: flow triggered by keyword posted in a chat group, flow should extract the members from a tag, post a message with the members of tag mentions

(0) ShareShare
ReportReport
Posted on by 20

Need help with a flow. Conditions are: flow triggered by keyword posted in a chat group, flow should extract the members from a tag, post a message with the members of tag mentions.

 

Is this possible? It would be helpful if there is an alternative solution to tag a group members on a group chat. Similar to the tag in teams channel. Help me please 

 

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Bharath22,

     

    Do not know if it helps. But I helped another community member with something similar yesterday:

    https://powerusers.microsoft.com/t5/Building-Flows/Retrieve-Microsoft-Teams-Tagged-members-but-excluding-myself/m-p/1659782#M184187

     

     

    filterarray_ignoreme.png

  • Bharath22 Profile Picture
    20 on at

    Hey @Expiscornovus , 

    Thanks a lot for your help. I'll test this out, however, I need to post a message in an existing group chat. 

     

    I managed to figure this out by using 2 compose data operations. The flow is now able to mention the people from a group. However, there are 2 issues with my flow:


    1. The message posted with the triggered keyword sends a message in my name even if other users are using the keyword trigger. I'm quite not able to figure out a way around this. 

     

    2. I wanted to post the message or reply as user triggered the flow along with the entire message without trigger keyword + mentions. But, when a user sends a group message with trigger, the message only sends mentions, can't seem to figure this out. 😞 

    Any help would be appriciated! 

  • Bharath22 Profile Picture
    20 on at

    This is what I have currently setup: @Expiscornovus 

    Bharath22_1-1657340011253.png

     

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Bharath22,

     

    You could post the message as a flow bot. At least than it is clear it is not coming from a specific user but from an automation.

     

    Sorry, the second part of your requirement I need some more clarification. You want to reply to a private group chat and mention a bunch of people who are part of that group chat, correct?

     

    Can you clarify a bit more want you are trying to achieve. What are for example sending back in that message? And what is the use case behind this setup?

  • Bharath22 Profile Picture
    20 on at

    Hello @Expiscornovus 

     

    Yes, you got the second part right. What i'm trying to acheive here is to have an alternative to Teams Tag as the group chats does not support tags. My team uses group chat for easy communication, we want to reduce team effort with this alternative. 

  • Bharath22 Profile Picture
    20 on at

    So basically what I want is, when a team member sends a message with keyword, the flow should reply to that message, along with mentions a set of tag members, plus original message and the mention of the user sent the message. 
    If you are suggesting adaptive card, even that helps. 

     

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Bharath22,

     

    So, let's say that group chat has 12 members. When you are using a specific tag with only 5 members you want to mention only those 5 people in the group chat? The other 7 people should not be mentioned in the same message, correct?

     

    Let me see if I can create an example for this.

  • Bharath22 Profile Picture
    20 on at

    hello @Expiscornovus , 

     

    Yes, you got everything to the point what I'm trying to achieve here. Adding to that, the 5 group mentions should be sent along with the message in the name of any other 7 users of the group who is sending the message. 

  • Expiscornovus Profile Picture
    33,195 Most Valuable Professional on at

    Hi @Bharath22,

     

    I have used an array variable and a select for this instead. After that I join the body of the select to get a comma separated list of mentioned people.

     

    Below is the example.

     

    Append to array variable value:

    {"mentiontag":"@{outputs('Get_an_@mention_token_for_a_user')?['body/atMention']}"}

     

    In the select I switch to text mode for the map field and use this expression:

    item()?['mentiontag']

     

    In the message body I join the mentions array items with a comma separator and space:

    join(body('Select'), ', ')

     

    tag_sales.png

  • Bharath22 Profile Picture
    20 on at

    Thank you! @Expiscornovus I'll try this out. 

     

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard