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 / Need Flow to Archive F...
Power Automate
Answered

Need Flow to Archive Folders Older than Certain Date and marked as Complete

(0) ShareShare
ReportReport
Posted on by 34

Can someone help me with this? I'm trying to make a flow that will archive folders to a subsite that are older than >60 days and also have the status as Complete. Would someone be able to help me with this? I'm completely new to Flow so not sure how to proceed with this and would greatly appreciate the help.

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    Microsoft Employee on at

    Hi @Galikin ,

     

    Do you want to transfer or copy a folder that meets certain criteria into a subsite?

    1. The date the folder was created is 60 days older than the Certain date.
    2. The status of the folder has been marked as Complete. The type of this field is inferred to be Choice type.

    You could configure your Flow as follows:

    • First use Get files action to get all the files and folders.
    • Configure Condition, you need to use four conditions to filter the folder
    1. Whether the current item is a folder
    2. Whether the Status value is Complete
    3. Whether the folder creation date is 60 days older than the specified date
    4. Finally check the Folder path is the folder under the root directory

    Image reference:

    22.PNG

    Expression:

    formatDateTime(items('Apply_to_each')['Created'],'yyyy-MM-dd')
    addDays('2019-02-13',60,'yyyy-MM-dd')

    If the above four conditions are met, the current folder can be copied to the specified subsite.

    23.PNG

    Please take a try.

     

    Best Regards,

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 67

#2
David_MA Profile Picture

David_MA 64 Super User 2026 Season 1

#3
Expiscornovus Profile Picture

Expiscornovus 39 Most Valuable Professional

Last 30 days Overall leaderboard