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.

Report
All responses (
Answers (