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 / Copilot Studio / Get Email V3 - Search ...
Copilot Studio
Unanswered

Get Email V3 - Search Query

(0) ShareShare
ReportReport
Posted on by

Hi there, 

I understand that the get Get Email V3 flow is limited to the top 25 results. Would using a search query widen the number of emails the flow checks or are you still limited to only the top 25?

 

Use case - we're using PVA & Power Automate to check a shared mailbox to see if we've received an email from a specific email address. Due to this shared mailbox receiving 100s of emails, it's extremely likely the automated flow will return a response to state nil returns. When in fact there could have been an email received, it's just beyond the top 25. 

Thank you

Categories:
I have the same question (0)
  • Verified answer
    Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @Matthew5,

     

    As far as I am aware the top property of the Get Emails (v3) action is for the number of items it will retrieve. That property does not say anything about the number of emails it checks.

     

    I did find this text about the filtering:

    This operation gets emails from a folder via graph apis. Please note that filtering related to these fields: To, Cc, To Or Cc, From, Importance, Fetch Only With Attachments, Subject Filter, is performed using first 250 items in a given mail folder. To avoid that limitation you can use 'Search Query' field.

    https://docs.microsoft.com/en-us/connectors/office365/#get-emails-(v3)

     

    With the search query field you will definitely check more items. I would use that in your setup.

  • Matthew5 Profile Picture
    on at

    Thank you for your reply! You're quite right sorry, I've been running testing it does search beyond the first 25 emails, but it's good to know it is in fact 250. 

    It is likely I'll still need to search beyond the first 250 and I'm struggling to get the Search Query to work, if that's something you've got experience with at all?
    Perhaps I'm using the incorrect syntax, as when I'm using $Search="From: example@contoso.com" it doesn't recognise the speech marks, it returns an error message. 
    If I use apostrophes, so using $Search='From: example@contoso.com' the flow will run correctly however it does not return any results despite there being an email there I know it should be able to check/return a result for. 

    Thank you

  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

     Hi @Matthew5,

     

    You do not have to add the $Search query parameter itself, Microsoft is taking care of that. Only add the parameter value.

     

    Try something like below

     

    searchqueryparameter.png

     

  • Matthew5 Profile Picture
    on at

    Thank you so much. Working as I hoped now! 

    Much appreciated

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 265 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 240 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 101 Moderator

Last 30 days Overall leaderboard