I need to move files older than 2018 from one SharePoint document library to another within the same tenant. I would also like to keep the files organized in their parent folders, or if it’s easier the whole folder structure (some files are very nested).
I’ve done a fair amount of searching and I believe I have the first part done.
Get files (properties only) – Apply Filter Query: Modified lt datetime'2018-01-01T00:00:00Z'
Then, Move file in a For Each loop with the destination site address.
This would dump everything into one folder, I’m unsure how to keep the folder structure.
Thank you for any input.

Report
All responses (
Answers (