Feedback by UserVoice

I suggest you ...

Add support for descending sort order to OneDrive for Business API

I want to retrieve a list of OneDrive files sorted by created date (descending), i.e. newest first. This can be achieved with a OneDrive personal account by appending `$orderby=createdDateTime desc` to the graph query, but this returns an error for a business account.

19 votes
Vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)
    You have left! (?) (thinking…)
    Ben shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    2 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Anonymous commented  ·   ·  Flag as inappropriate

        yes, enhance order by functionality to personal & business OneDrive or return items in user specified order by default if no orderby specified.. Personal OneDrive gives you option to sort items in custom order, but there is no way to retrieve items in custom order via Graph API.

      Feedback and Knowledge Base