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 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,185 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

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