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 / Flow condition Created...
Power Automate
Answered

Flow condition CreatedDate -1 hour

(0) ShareShare
ReportReport
Posted on by

Need help. Flow works fine but want to put in a condition for only records created in last hour (or whatever).  Can do minus days easily enough. 

KevRichards_0-1648566262708.png


But applying same for hours doesn't work...e.g. AddHours(utcNow(),-1).  Presuming because of formats? 

<CreatedOn> field is format yyyy-mm-dd hh:mm:ss.ttt

 

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    on at

    Hi @KevRichards,

    Could you please try to format as below:

    addhours(utcNow('yyyy-MM-dd hh:mm:ss.ttt'),-1) 
  • KevRichards Profile Picture
    on at

    Thanks, I used addHours(formatDateTime(utcNow(), 'yyyy-MM-dd HH:mm:ss'),-1) but that worked too.  Seems formatting helps to identify as a time....  

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
Expiscornovus Profile Picture

Expiscornovus 199 Most Valuable Professional

#2
David_MA Profile Picture

David_MA 194 Super User 2025 Season 2

#3
harshdeol Profile Picture

harshdeol 167 Moderator

Last 30 days Overall leaderboard