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 archive files f...
Power Automate
Unanswered

How to archive files from one SharePoint site to another based on last modified date

(0) ShareShare
ReportReport
Posted on by 3

Hello,

 

I have my SharePoint site cluttered with old files which makes my search bar virtually useless when looking for specific files. I am trying to archive files within my site  to a separate archive site I created, based on a last modified date of 2019-01-01.

 

In order to do this, the Ideal flow in mind would copy files from source site based on modified date of 2019-01-01>then delete those same files from the source site.

 

I have created the flow below which has copied files successfully, but I am stuck now trying to find a way to copy based on last modified date. 

crod1_2-1674238210030.png

 

Thanks for the help!

 

 

 

Categories:
  • Hardesh15 Profile Picture
    7,087 Super User 2024 Season 1 on at

    @crod1 First you have to list all folders then use get files (properties only). This will give you all files properties. After that use Get file metadata and then use create file. This will create all files in your Achieve SP then use delete file action.

    To get files for specific time span use filter query in get files action.

    Hardesh15_0-1674291077777.png

    Take help from this for filter query-SharePoint Get Items and Filter Query in Flow [Part-2] « Gopenly

    Please 'Thumbs Up' the posts that helped you and 'Accept as Solution' if my post answered your question.

    @Hardesh /Gopenly.in

  • crod1 Profile Picture
    3 on at

    Thank you Hardesh. I have created the flow below and it runs successfully however it does not actually move the files. any Idea why? I added the filter query as suggested.

    crod1_0-1674484778323.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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard