I'm new to PAD and trying to setup a process to move files equal to or older than 3 days from creation date into an archive folder. I have been experimenting with Conditionals but haven't found a solution yet. Is there some use case scenarios or other resources I should be looking in? Thanks in advance for your advise!
Solved! Go to Solution.
You'll need:
Get files from folder
Get current date
Subtract datetime
For each (in Files)
If CreationTime of CurrentItem is <= Subtracted date then
Move file
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/folder#getfiles
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/datetime#subtract
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/file#move
You'll need:
Get files from folder
Get current date
Subtract datetime
For each (in Files)
If CreationTime of CurrentItem is <= Subtracted date then
Move file
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/folder#getfiles
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/datetime#subtract
https://docs.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/file#move
Thank you! That put me on the course correction I needed. I was quickly ejecting to running some scripts on the side. Seeing how it is possible to step through the operation is great and I appreciate the links to the supporting materials!!
Can someone please share how can I get either file creation date or last modified date?