Forum Discussion
Auto move a document
Rares1055 Do you mean when a new version of the same file is added? Or do you mean when any file is added to a folder, move out any older files?
If you're just looking to move any older files, that's fairly easy. Use the item created Sharepoint trigger, then get the list of files in the folder and check the datestamps against the newly created item, moving anything older.
If you're talking about older versions of the same item, that's a bit more difficult, but perhaps the following 2 blog posts might provide some insights.
https://www.powerautomatetraining.co.uk/post/microsoft-flow-sharepoint-document-restore-previous-version
https://manueltgomes.com/microsoft/how-to-get-previous-versions-in-sharepoint/
First of all, thank you for your reply!
I have different ideas of what to do, but I don't know how.
First it would be to add a different file (different revision) and to have a column with choice VALID/INVALID. When a new file is added, that one becomes VALID and all others INVALID.
Second, I add a new file and the other revision that is already in the folder to move somewhere in another Library.
Do you have any idea for the first one? It seems to be pretty nice if we can pull it through.