web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Filtering on conversat...
Power Automate
Unanswered

Filtering on conversationID

(0) ShareShare
ReportReport
Posted on by

I have a flow with a trigger of "when a new chat message is added" for MS Teams.. 

 

I would like to only do the trigger if it matches a specific ID, but cant seem to get the command right / syntax correct to have it work.. 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 1 on at

    Hi @jimi_hendrix,

     

    Have you tried something like below to set the trigger conditions?

     

    BCBuizer_1-1666287129724.png

     

     

  • jimi_hendrix Profile Picture
    on at

    @BCBuizer 

    I did try that and thought when I saw yours maybe I had caps or other typo.. but no luck.. I created a compose and put this into it.. triggerOutputs()?['body/conversationId']  ... and it doesnt return anything either but it doesnt fail either.. This is the output of the new chat message... as you are probably already aware but just in case mine is different for whatever reason.. 

     

    [
    {
    "subscriptionId": "a number",
    "changeType": "created",
    "clientState": "secretClientValue",
    "subscriptionExpirationDateTime": "2022-10-21T02:47:41.2113461+00:00",
    "resource": "chats('a chat number')/messages('a message id')",
    "resourceData": {
    "id": "a message id",
    "@odata.type": "#Microsoft.Graph.chatMessage",
    "@odata.id": "chats('a chat number')/messages('a message id')"
    },
    "tenantId": "a tenant id number",
    "conversationId": "a chat number",
    "messageId": "a message id",
    "linkToMessage": "a url"
    }
    ]

     

    I am able to retrieve it through a apply to each on '@{triggerOutputs()?['body/value']}' and then @{items('Apply_to_each')?['conversationId']} but cant seem to extract this directly, and will obviously need this to do the filter on the trigger

     

    Any other suggestions?

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard