box / box-windows-sdk-v2

Windows SDK for v2 of the Box API. The SDK is built upon .NET Framework 4.5

Home Page:https://developer.box.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can not sort by date when get items in folder.

shironeko269 opened this issue · comments

Description of the Issue

Get bad request when calling await boxClient.FoldersManager.GetFolderItemsAsync("0", limit: 1000, offset: 0, fields: ......, sort: "date", direction: BoxSortDirection.DESC);

Error Message, Including Stack Trace

"Error converting value "date" to type 'Box.V2.Models.BoxSortBy'.Path 'order[1].by', line 1, position 22453."

but it mentions here that it accept the "date" value.
image

Hi @shironeko269,
thanks for reaching us. We will look at this issue and try to resolve it as soon as possible.
Best,
@lukaszsocha2