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 / 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
    Microsoft Employee 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

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

David_MA 86 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 55

#3
Ellis Karim Profile Picture

Ellis Karim 53 Super User 2026 Season 1

Last 30 days Overall leaderboard