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 Email(V3) Search Q...
Power Automate
Answered

Get Email(V3) Search Query for Month Filter

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

I'm Trying to retrieve the Emails from the Outlook based on the Month. I have used the Get Email(V3) Search Query as " received le @{formatdatetime (adddays(utcnow(),-30),'dd/MM/yyyy')}. Even I tried with couple of things but I'm not able to achieve the Output what I Exactly Want. Please help me out. Thanks in Advance!..

 

Thanks & Regards,

Uvan.

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

    Hi @Anonymous,

     

    I am not sure if the search query parameter supports the le operator. 

     

    However, as a workaround you could use the Graph API instead with a filter query parameter. You can for example use that in a Send an HTTP request action from the Office 365 Groups connector..

     

    Below is an example of that approach.

    Btw, I would use a ge instead of an le because you everything from the last 30 days, correct? In this example I am only retrieving the receivedDateTime and subject of the individual e-mails. Remove that &select= part if you want to retrieve all properties 😁

     

     

    https://graph.microsoft.com/v1.0/me/messages/?$filter=receivedDateTime gt @{addDays(utcNow(), -30, 'yyyy-MM-ddTHH:mm:ssZ')}&$select=receivedDateTime,subject

     

     

     

    graphapi_filterquery.png

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Expiscornovus,

     

    Thanks for taking your time and it Worked for me as well. 

     

    1. Currently, I Achieved the thing in Get Emails(V3) action using Search Query                  as received<formatDateTime(adddays(utcnow(),-30),'yyyy-MM-dd'). Even though I liked your Approach which make my work Easy😀
    2.  Is there any way to retrieve the 100+ Mails from the Particular folder/Subfolder  using Send an HTTP Request action. If you have any workaround for this it will be great help for me. Thanks in Advance!.. 

     

    Best Regards,

    Uvan.

     

     

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!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard