Skip to main content

Notifications

Community site session details

Community site session details

Session Id : EvzAvKixUd49AebXv7XLGz
Power Automate - General Discussion
Answered

How to get a unique group chat to get triggered

Like (1) ShareShare
ReportReport
Posted on 20 Jun 2024 20:11:00 by 1,673 Super User 2025 Season 1

Hi guys,

 

I have attached a pic of a very simple flow.

 

Goal is to get message details when a new chat message is added. Now, I don't want this to get triggered every time I send a message in teams in any group chat. I want this flow to get triggered only when a new chat message has come in that particular group chat.

 

Scenario:

Let's say I have these group chats:
Test1

Test2

Test3

 

I want this flow to only trigger for group chat, Test1.

 

Now, I send a message in Test1, this flow will get triggered.

Next, I send a message in Test2, this flow should not get triggered.

Similarly, in Test3 also it should not trigger.

 

I was trying to see under this trigger's settings if I can trigger that group chat only but I am not sure how to do it.

Please do let me know what can be done here. Thank you!

NathanAlvares24_0-1718913708459.png

 

  • NathanAlvares24 Profile Picture
    1,673 Super User 2025 Season 1 on 21 Jun 2024 at 03:28:42
    Re: How to get a unique group chat to get triggered

    Thank you to both of you'll, @BCBuizer and @Anil_g ! This trigger expression worked like a charm.

  • Verified answer
    BCBuizer Profile Picture
    22,070 Super User 2025 Season 1 on 20 Jun 2024 at 21:18:29
    Re: How to get a unique group chat to get triggered

    Hi @NathanAlvares24 ,

     

    As per the documentation, this trigger has no parameters, so you can't use those: Microsoft Teams - Connectors | Microsoft Learn

     

    However, it does have the option to set trigger conditions. If you leverage that, you can get it to trigger only for the selected conversationID:

    BCBuizer_0-1718918291788.png

     

     

    @equals(first(triggerOutputs()?['body/value'])['conversationID'],'abcd')
    

     

     

  • Verified answer
    Anil_g Profile Picture
    668 Super User 2025 Season 1 on 20 Jun 2024 at 21:14:28
    Re: How to get a unique group chat to get triggered

    @NathanAlvares24 

     

    you can use trigger condition on the channel or chat id in trigger under settings

     

    @equals(first(triggerOutputs()?['body/value'])?['conversationid'],'GiveIDHere')

     

    Anil_g_2-1718918017143.png

     

    to get conversation id of channel or chat..run the flow and send message in channel you need ..and you would find it

    Anil_g_1-1718917982015.png

     

    Hope this helps

     

    cheers

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard
Loading started