cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dvoinikat
Helper II
Helper II

Get Emails V3 search query by receved date

Hello,

 

I have created a flow which is getting emails from shared mailbox and then extract those and move to One Drive. It seems that the serach query is not able to find some emails, despite I am able to see them in the mailbox. 

The language expression I am using is "received<2015-31-05" where I want to extract emails which are older than 31st May 2015. The command returns empty value. If I change the year to more recent, like: "received<2021GetEmailsProcessed.jpg-02-28", then it starts to get the emails. Somewhere in the middle of 2020 the query stops identifying emails. 

 

Any clue why this is happening and how to overcome it?

 

Thank you!

3 REPLIES 3
tom_riha
Super User
Super User

Hello @dvoinikat ,

I'm not sure about the limit, maybe there's a limit how many emails it can return at once, but for the original 2015 filter I'd try to switch the month and day number:

received<2015-31-05 
should be
received<2015-05-31

 



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

I have tried this one (and many others) and no success. It seems though, the issue is not with the search query, but with the emails themselves. For example I managed to collect an email from 2014 but two other were missed from the same period. The two were replies and the one captured was not. Started to wonder whether those old emails have been moved from another mailbox and this is the reason why I cannot get them. 

How can I compare emails in order to look for a reson why some are collected and some are "invisible" to "Get emails (V3)" command?

 

Hello @dvoinikat ,

I'd check the Outlook online for the messages, the 'Get emails' action takes a look into the online mailbox so everything that's there should be found by the action.



[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (4,557)