cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Tardisgx
New Member

How to write If file modified = today condition?

Hi This is for the Power Automate Desktop not online flow.

 

I cannot see a trigger to check a specific file's modified date.

I need to check a specific file on the drive's modified date, if modified date = today start the flow.

 

The best thing I can think of is to

1)write a power shell to return the file's modified date as a variable

2) write if statement in PAD to compare that variable with today

 

But i don't know how to do either so any help would be appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
Nived_Nambiar
Resolver II
Resolver II

Hi @Tardisgx 

 

It is possible to do in power Automate desktop via this way 

 

 

1. After reading all files in folder and store in list 

 

2. Use for each loop through each element in list , each element would be file type.

 

  a. Now use Get Current Date And Time action to retrive the current date and time and store in a variable let's say dt1

b. Now use the if condition with below condition

 

%file.LastModified%= dt1

 

Now based, trigger ur actions accordingly

 

Regards

 

Nived N

View solution in original post

2 REPLIES 2
Nived_Nambiar
Resolver II
Resolver II

Hi @Tardisgx 

 

It is possible to do in power Automate desktop via this way 

 

 

1. After reading all files in folder and store in list 

 

2. Use for each loop through each element in list , each element would be file type.

 

  a. Now use Get Current Date And Time action to retrive the current date and time and store in a variable let's say dt1

b. Now use the if condition with below condition

 

%file.LastModified%= dt1

 

Now based, trigger ur actions accordingly

 

Regards

 

Nived N

Success

success.png

Thank you for your help.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,978)