Best answer

How do I move oldest "Last Modified" file between OneDrive folders daily?

  • 12 August 2023
  • 3 replies
  • 39 views

Userlevel 1

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!

icon

Best answer by Troy Tessalone 12 August 2023, 17:22

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Userlevel 7
Badge +14

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

 

Userlevel 1

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

 

Userlevel 7
Badge +11

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! 🙂