0

I would like to retrieve specifically the shortcuts that users have in the root directory of their OneDrive. There are a few endpoints I've tried that I can use to search for files:

  • /me/drive/root/search(q='') - recursive, includes shortcuts
  • /me/drive/root/children - none recursive, no shortcuts
  • /me/drive/list/items?$expand=driveItem&select=driveItem - recursive, includes shortcuts

All of these have one of two problems: they don't include the shortcuts, or they are recursive.

What I really want is a way to find all of the shortcut files in a specific folder, non-recursively.

I've also tried using all of these endpoints with the $filter query param to no avail as I believe that none of these are build to handle that, according to the Microsoft docs.

Is there anything that I'm not aware of that I can do to accomplish this?

2
  • Could you explain what you mean by "shortcuts"? This isn't a property or collection of a DriveItem, so it's unclear which property/collection you are looking to retrieve. Commented Jun 23 at 19:50
  • @MarcLaFleur By shortcut I mean a shortcut to a folder in the user's OneDrive - as in you click on it and it leads you to the folder for which you created the respective shortcut. The DriveItem resource has a property called the RemoteItem, which is file that the shortcut leads to. I am trying to find a way to query for only those items in a user's OneDrive Commented Jun 26 at 16:02

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.