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

Get Email(V3) Search Query for Month Filter

(0) ShareShare
ReportReport
Posted on by

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,189 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
    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

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 > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard