Forum Discussion
Rares1055
Jan 06, 2023Copper Contributor
Auto move a document
Hello, I would like to know if it is possible with PowerAutomate to auto-move an older to document from a folder(to another) when a new one is added? It would help our company to keep in that...
Rares1055
Jan 12, 2023Copper Contributor
Anyone else here? Thanks 🙂
- SvenSieverdingJan 12, 2023Bronze Contributor
Hello Rares1055,
Sure, you can build a flow that does exactly that... it would look like thisTrigger: [SharePoint] When a file is created in a folder
Action: [SharePoint] Get Files (Properties Only)
Filter Query: ID ne <ID from the Trigger> and Status eq "VALID"
Apply to Each Result from "Get Files"
Action: [SharePoint] Update File PropertiesStatus: "INVALID"
Action: [SharePoint] Copy File
Destination Folder: Your Archive Folder
But i would not go through all that hassle.
Just enable versioning on that document library and always save the file as the same filename.
If you want to see older versions of the file, just take a look at the document history of that file.
Best Regards,
Sven