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 / Create flow to move it...
Power Automate
Unanswered

Create flow to move items older than 6 months from one document library to another in SharePoint

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello all,

 

Im pretty new to PowerAutomate and need help with a flow. I need to create a flow that moves all items with a modified date older than 6 months and archives them in a secondary document library. This flow would run run once a month. Thanks in advance.

 

-JD

Categories:
I have the same question (0)
  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @Anonymous 

    See my example below:

    image.pngimage.pngimage.png

     

    Let me know if you have any questions.

     

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you for your response, Scott.

     

    I am getting the following error:

    Jidua008_0-1632344725013.png

     

    -JD

  • PF-04061209-0 Profile Picture
    on at

    Hi Scott

     

    I believe you are the person I need to contact for advice & guidance on Power Automate as whilst I am extremely technical, coding sometimes is a bit of a stretch for me

     

    So here is my problem, I am trying to move files which are older than 1yr from SharePoint library to Azure Blob storage as this will assist with archiving & keeping SharePoint under control

     

    However the PA flow I have setup just does not work so I am hoping you can lay this out for me please as I have tried the above but I could not set it up correctly

     

    In my tests I can successfully move files from one SP library to another but as soon as I add in a condition to say older than 365 days it fails

     

    Here is the flow 

     

    pfrancis73_0-1715944379164.png

     

     

     

    pfrancis73_2-1715944379168.png

     

    pfrancis73_3-1715944379171.png

     

     

    If you have any advice or can guide me through it would be appreciated

     

    Thanks

     

     

     

     

     

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @pfrancis73 

    Remove your condition and add a filter query as seen in my screen shot below.  Only documents older than 1 year will be returned by the Get Files action.  My expression can be seen on the notes for the action.  Please note the single quotes - they are required.

    image.png

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

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard