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 / How to write If file m...
Power Automate
Answered

How to write If file modified = today condition?

(0) ShareShare
ReportReport
Posted on by 7

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.

I have the same question (0)
  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    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

  • Tardisgx Profile Picture
    7 on at

    Success

    success.png

    Thank you for your help.

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard