web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need Flow to Archive F...
Power Automate
Unanswered

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard