Skip to main content

Notifications

Power Automate - General Discussion
Suggested answer

Subject Filter x Search Filter

(0) ShareShare
ReportReport
Posted on by 2
I have a flow that uses Get Emails v3 to fetch emails from a shared box.
 
I did the test, without any type of filter, and the emails are returned normally.
 
Now I need to filter so that it brings records that only have certain words in the subject (ex: nr. 123) 
 
If I use the subject filter, according to the documentation, I am limited to email boxes that have up to 250 messages. I actually took the test and it doesn't show the record. To prove that my filter was working, I used one of the emails returned in the first test where I didn't use any filter. And the record was returned.
 
I also tried using the search filter. I tried every way, but without success.
 
What is the correct way to search using the search filter?
 
I tried the following ways:
subject: *123*
subject = 123
123
*123*
 
Categories:
  • Suggested answer
    Ellis Karim Profile Picture
    Ellis Karim 10,539 on at
    Subject Filter x Search Filter
    The subject filter I use:
    subject:Expense Claim Status Change


    Please check the "Fetch Only Unread Messages". I think you need to set this to NO.
     
     
    Ellis
  • Subject Filter x Search Filter
    Hi abc 123 . I followed all the paths you mentioned, but none of them were clear enough to tell me how to do it.
    I also tried using the subject filter, but as I mentioned in the post, this filter is limited and can only be applied if the mailbox has less than 250 messages (which is not my case).
    So it won't work.
     
    Hi EKarim , thanks for the link. I did some tests as mentioned, but for some reason it's not working.
    See below that the message exists in the configured folder, inside the shared box, but it doesn't return any records.
    OBS: If you use double quotes, it gives an error. I tested it with single quotes, it doesn't give an error, but it doesn't work either.
     
  • Suggested answer
    abc 123 Profile Picture
    abc 123 724 on at
    Subject Filter x Search Filter
     
    The hint in the parameter says to go to this link:
     
    which is 100% useless, as it only has a single paragraph that reroutes you to here: (Thanks interns!)
     
    which leads to:
    $search="subject:has"&$select=subject
    unfortunately, this is not the direct syntax for the Flow.
     
    Finally, if you expand the Advanced options, there exist an input of "Subject Filter"
     
     
    With that, you would simply enter 494301. (Although you might have to wrap that as String(494301).
     
     
  • Suggested answer
    Ellis Karim Profile Picture
    Ellis Karim 10,539 on at
    Subject Filter x Search Filter
    As far as I know, you should be able to use most (if not all) the search filters as shown here:
     
     
    example: 

    subject:"bobby moore"

    Items whose subject contains the phrase bobby moore.

     
    Ellis
     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard