Hi Community
I see many unanswered questions online and in the forums on how to "archive" a folder in SharePoint from one library to another.
I got the following to work and it's quite easy to do.
Step 1 - Create scheduled flow and set your Recurrence
Step 2 - Initialise a variable for the number of days in the past you want to look back
Step 3 - Get files action
Set your Filter Query to search on your criteria , mine is to look at the Modified date as as per above expression , only those 60 days old
AND 'FSObjType eq 1' filters the Folders
Step 4 - Apply to each returned value from the filter query the move folder action
and that's it.
any folder and documents within the folder at the library level will move.
if your use case is slightly different you need to play around with the filter query and maybe add further actions to apply to each.
hope this helps...