Showing results for 
Search instead for 
Did you mean: 
Not applicable

Archive function for SharePoint

Hi there!

I've been trying to create an automatic archive function for a SharePoint site. I would want the person who first uploaded the document to the site to receive an automatic e-mail after the document have been uploaded without any modifications for about 6 months. Then either an answer to this e-mail will move the document automatically or if it is not possible, at least they will receive an e-mail asking if this document is not outdated and should therefor be moved to the Archive folder. Does anyone have any good suggestions for me?

Dual Super User
Dual Super User

Re: Archive function for SharePoint

Hi @Anonymous 


You might want to try this: 


1. Trigger: Recurrence -> Once a week. 

2. Get Files action and in the Filter query filter files by Modified date less than 6 months from UTC now. 

3. In the apply to each loop control iterate over the list that was returned in step 2 (in  this action go to the settings and turn on concurrency to run the condition in parallel for all the iotems returned in the list)

4. Create a sharing link to the file 

5. Send an email with options -> Option 1: Move to folder 2: Do not do anything. and the to in this emaila ction will be the created by from the get files action. 

6. Based on the option recieved, if move folder then add the actions appropriately else do nothing. 


Hope this Helps!

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Community Support Team
Community Support Team

Re: Archive function for SharePoint

Hi @Anonymous ,


Many of the comments are from @yashag2255, and I will provide screenshots of configuration for some reference and attention to details:

From Step Recurrence to Step Send an email with options:

Annotation 2019-07-17 102644.png

Step determine the response from the Email and Move a file:

Annotation 2019-07-17 102749.png

Step Setting for Apply to each:

Annotation 2019-07-17 104032.pngAnnotation 2019-07-17 103937.png

Please have a try, I hope it will help you.


Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources


Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!


Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!


New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (4,328)