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 / How can i find message...
Power Automate
Answered

How can i find message in team directly by subject or tag ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Have a flow and purpose of which is to post a message in the channel, in order to avoid duplicate post, I have to check if a thread is already initiated in the team channel with the subject or not, if it is not there, then have to post a new thread.  Currently i see the only way to do achieve by below 

 

a.   Get list of all the messages in the team channel

b.  Loop through each and check if there is one with subject or not 

c. Then take decision 

 

This will not scale out when there are lot of message in team channel . 

 

Is there any easy way to find the team message directly ? 

Categories:
I have the same question (0)
  • fchopo Profile Picture
    8,003 Moderator on at

    Hello @Phani 

    I thought you might use a Graph API call to get teams messages: List channel messages - Microsoft Graph v1.0 | Microsoft Docs Unfortunately, this operation doesn't admit OData filter query parameters yet,

     

    On the other hand, you could use a delta operation to filter messages by date: chatMessages: delta - Microsoft Graph v1.0 | Microsoft Docs

    Hope it helps!

    Ferran

  • Verified answer
    tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Phani ,

    you could use the 'Filter Array' action instead of a loop. You'll still get all messages in the first step, but you don't have to check them one by one.

    image.png

  • PJ-10092242-0 Profile Picture
    Microsoft Employee on at

    Thanks . I tried to use filter array but i was getting issue some exception when there was no matching record

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 416

#3
David_MA Profile Picture

David_MA 344 Super User 2026 Season 1

Last 30 days Overall leaderboard