I have tried doing an auto archive flow for my SharePoint online sites for a couple weeks now. It started with the tutorial at the following URL: https://powerusers.microsoft.com/t5/Webinars-and-Video-Gallery/Microsoft-Flow-Tutorial-Auto-Archive-SharePoint-Files-6-Months/td-p/153930
This tutorial is too fast and leaves a lot of questions unanswered, but still i was able to follow it. Ultimately there's a bunch of errors, I had another post where I tried to get help on the errors and the suggestions drifted further and further from something that worked.
So I thought I'd start over.
Does anyone know how to make a flow that auto-archives stuff by copying files that have not been accessed for 6 months from one folder to another. Namely, from any active synced library to the archive library I've created.
I have seen other posts where people have followed this video and gotten errors.
Any ideas on how to approach this from scratch?
It works! Thank you.
Wheres the best place in the flow to make a delete file option?
So after it autoarchives, it deletes the file from the original location.
Hi @Anonymous ,
It should be "le" instead of "ie".
When configuring Folder in the Copy file action, click File browse to select the folder instead of entering the folder path manually.
Best Regards,
Disregard that last one, I changed the expression and removed the 'yyyy-MM-dd' part and it worked.
But now it says the it cant verify the existence of the directory im trying to copy to:
V-bacao-msft,
I ran a test just using 30 days as the date, because the test directory was last modified about 45 days ago.
I got this error from the expression you suggested:
The expression " Modified ie '2019-11-17" is not valid.
clientRequestId: de706d7a-413f-4fbd-971d-c75eb17c0050
serviceRequestId: de706d7a-413f-4fbd-971d-c75eb17c00
seems to be a viable option otherwise, and simpler than what I was attempting.
Hi @Anonymous ,
Have you tried this configuration? You can remove the Get file metadata action, it will not affect the final result of Flow execution.
Best Regards,
Michael E. Gernaey
497
Super User 2025 Season 1
David_MA
436
Super User 2025 Season 1
Riyaz_riz11
244
Super User 2025 Season 1