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 / Need to check if creat...
Power Automate
Unanswered

Need to check if creation time of file is more than 2 hours old.

(0) ShareShare
ReportReport
Posted on by

I need to execute a flow to stop and re-start a service if a new file has not been created in the folder in the last 2 hours.

 

I can get the DateTime of the file.

 

But I am not sure how to check if it's two hours old or more.

 

I tried to make a subtraction of CurrentDateTime by CurrentFile.CreationTime, but I get a warning that the operator '-' can´t be applied to "Text Value".

 

This is the formula I input inside a EXHIBIT MESSAGE (sorry, my PowerAutomate is in a different language, so when I translate back to English it might be different than the English Power Automate version words used)

%CurrentDateTime - DataTempo%

 

Both variables show to me as DateTime variables when I filter them. So I don´t understand this message of Text Value.

 

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    There's a subtract dates action you can use, and Hours is one of the options:

    ryule_0-1660834983686.png

     

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 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard