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 / How to get a unique gr...
Power Automate
Answered

How to get a unique group chat to get triggered

(1) ShareShare
ReportReport
Posted on by 1,714 Moderator

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

 

Categories:
I have the same question (0)
  • Verified answer
    Anil_g Profile Picture
    668 Moderator on at

    @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

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    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')
    

     

     

  • NathanAlvares24 Profile Picture
    1,714 Moderator on at

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

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard