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

Get Email (v3) Search Query - setting time search

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello everyone,

 

I am trying to set Search Query in a way that I will get emails from specific folder that are one hour old. All emails that I get has the same same subject and body, but If I receive about 4 emails per hour I should ignore it, but if I receive 5 and more I need to pay attention to it.

 

This is some of samples that I made, but it is not working correctly:

dilshod_DHLITS_0-1665399857634.png

 

I also tried this query:

received<=addHours(convertFromUtc(utcNow(),'GMT Standard Time'),1)

but it just gives me all the emails that I received before a past hour, but I need the one that I received in last hour.

 

I appreciate any help!

Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    I don't believe that we need to convert utc datetime to local datetime because this action returns utc datetime.

    So please try this:
    received>=@{addHours(utcNow(),-1,'yyyy-MM-ddThh:mm:ss')}

     

    Assuming the datetime now is 2022-10-11T11:42:30, it will return the emails between2022-10-11T10:42:30 and 2022-10-11T11:42:30.

     

    Best Regards,

    Wearsky

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi @v-xiaochen-msft ,

    That's perfectly works for me.

    Thank you very much for the solution!

     

    Best Regards,

    Dilshod 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard