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 / Get file/folder last m...
Power Automate
Answered

Get file/folder last modify date

(0) ShareShare
ReportReport
Posted on by 10

Hi All,

 

I want to move files/folders to another folder based on the last modified date "Archiving".

How I can get the last modified date of the file/folder? or at least created date with PAD?

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

    Hi @Untik 

     

    You can get the last modified date of file using the property values 

    Nived_Nambiar_0-1624623408691.png

     

     

    let's say if the %file% is a variable which represent file, then %file.LastModified% will gives you the last modified date as well

    Nived_Nambiar_1-1624623478230.png

    simmilar with folder too

     

    Please mark this as solution if the above information helps you

    Regards,

    Nived N

    Happy Automation

  • amamidwar23 Profile Picture
    62 on at

    Hi @Untik 

     

    You can use get files in folder action and this will return you a List item, which has all information of each files like "modified date", "last date","fullname" etc.

    you can also sort them as per modified date (Des/Asc)

     

    Capture.PNG

     

    Thanks 

     

    AR

    Please consider to Mark my post as a solution! to guide others, if this helps .

  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Hi @Untik 

     

    Its not big issue i think

    get files in a folder- inside advance option- select the required filtering method- once done

    u will get output variable as files means

    just check files[0] it will help for u i think

     

    Regards

    Ahammad Riyaz

  • Verified answer
    tkuehara Profile Picture
    667 on at

    Click on the "Select variable" icon and click on the ">" icon. It will expand the variable properties in which you can choose the variable you want to work with. Example:

    tkuehara_0-1624915076630.png

    For example, selecting the LastModified property and setting it to a variable:

    tkuehara_2-1624915635903.png

    Sample flow to show a message when finding a folder modified in the last week:

    tkuehara_3-1624915732022.png

     

     

  • sudhirsundar Profile Picture
    4 on at

    Thank you very much for the tip.

  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Hi @sudhirsundar 

    If it is working fine. Mark as a solution.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 298 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 159 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 150 Super User 2026 Season 2

Last 30 days Overall leaderboard