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

Get Email (v3) Search Query - setting time search

(0) ShareShare
ReportReport
Posted on by

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:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    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
    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

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard