SharePoint 列表项上的 Orderby 不起作用

Orderby on SharePoint list item does not work

我正在尝试使用 Microsoft Graph 订购列表项集合:

.../items?select=id&orderby=id%20desc

我尝试了多个属性并使用 space 而不是 %20。我关注了 documentation.

但 ID 总是升序排列。我做错了什么还是 Microsoft Graph 的错误?

SharePoint endpoints 当前不支持 $orderby 参数。目前仅支持 $select$expand$filter

我建议访问 UserVoice 并添加对此功能的请求。在提取 ListItem 资源的集合时,它似乎很有价值。


顺便说一句,您还缺少 $ 前缀:

items?$select=id&$orderby=id desc

beta 端点支持忽略 $ 前缀。根据 documentation:

Note: On the beta endpoint, the $ prefix is optional.