Skip to main content

Notifications

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

 

  • KevRichards Profile Picture
    KevRichards on at
    Re: Flow condition CreatedDate -1 hour

    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....  

  • Verified answer
    Re: Flow condition CreatedDate -1 hour

    Hi @KevRichards,

    Could you please try to format as below:

    addhours(utcNow('yyyy-MM-dd hh:mm:ss.ttt'),-1) 

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,422

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,711

Leaderboard

Featured topics

Restore a deleted flow