Skip to main content

Hello there. I am trying to figure out how to move a file from one folder in my onedrive to another at noon every day. I would like this file to be the file with the oldest “last date modified”. It seems this should be pretty straightforward forward but I cannot seem to figure out how to get zapier to choose the file based on the last modified date rather than the name.  Thanks!

Hi @calebw02 

Good question.

You’d likely have to use the OneDrive API: https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_search?view=odsp-graph-online

Zap action: OneDrive - API Request

 


Gotcha. It looks like this is the best solution. Thanks!

 


Glad to see Troy was able to point you in the right direction here @calebw02🎉

Let us know if you run into any issues or questions in testing out that OneDrive API Request (Beta) action. We’re always here and happy to help! 🙂