box / box-windows-sdk-v2

Windows SDK for v2 of the Box API. The SDK is built upon .NET Framework 4.5
https://developer.box.com
Apache License 2.0
186 stars 163 forks source link

Can not sort by date when get items in folder. #952

Closed shironeko269 closed 6 months ago

shironeko269 commented 6 months ago

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

lukaszsocha2 commented 6 months ago

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