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
Regular Visitor

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
Regular Visitor

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

Success

success.png

Thank you for your help.

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

Users online (71,166)