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 / Get emails (V3) Search...
Power Automate
Answered

Get emails (V3) Search Query

(1) ShareShare
ReportReport
Posted on by 19
Hi there!
 
I'm aware that there is a similar post to this on here already (Solved: Get Emails V3 Search Query), however I have read it through many times and tried exactly what is suggested on there but am still having issues unfortunately.  I've been searching endlessly for any help online but everything I have tried isn't working, so I think I'm somehow doing something wrong here.
 
I currently have a flow set up to get attachments from emails and add to a SharePoint document library.  When I test the flow without having anything in the search query box it works exactly as intended without any issues.  However, the emails I am wanting to extract files from will have more than the 1000 email limit that seems to be set by Power Automate.  To get around this I am trying to filter the emails to be within a certain date range, so that I can manually run the flow for each month, for example, to ensure that I don't exceed the limit.
 
I have tried so many different formats of search query attempting to get it to work, however every single time I try to do a query my Get emails action outputs nothing.  I would greatly appreciate it if someone could please help me figure this out!  Alternatively, if you have any better suggestions to work around the 1000 email limit, that would also be greatly appreciated.
 
Thank you!
 
 
I have the same question (0)
  • Suggested answer
    Expiscornovus Profile Picture
    33,851 Most Valuable Professional on at
     
    You can use KQL in the Search query parameter.
     
    Try the below:
    received>@{utcNow('yyyy-MM-ddT00:00:00Z')}



     
    Happy to help out 😁

    I share more #PowerAutomate and #SharePointOnline content on my Blog, LinkedIn, Bluesky profile or Youtube Channel
  • CU30121719-0 Profile Picture
    156 on at
    Try to use the classic editor.
  • MT-23010233-0 Profile Picture
    19 on at
    Hi @Expiscornovus, thanks so much for the helpful reply!
     
    I tried your suggestion I think exactly as you said to, but my get emails actions still is just outputting an empty array:
        "body": {
            "value": []
        }.
     
    However when I try run the flow keeping everything else the same and only deleting the search query, it returns my emails as intended.  So I'm guessing this means it definitely is still an issue with the search query syntax?  Is there any sort of obvious trick that I must do when typing in the search query or something haha, feeling a bit stumped here?
  • Verified answer
    MT-23010233-0 Profile Picture
    19 on at
    Ah never mind I have managed to find a solution that is working!
     
    received>=2018-07-23 AND received<=2026-01-20 
     
    This seems to be working as acceptable formatting for the date range, and after testing it out a few times everything appears to be working as intended.  
     
    I am still a bit confused by this as all of the other suggestions on here and elsewhere online weren't working for me at all, so would be interesting to know why that is.  Regardless, I really appreciate the 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard