我正在尝试使用 Microsoft Graph 对列表项的集合进行排序:
.../items?select=id&orderby=id%20desc
我尝试了多个属性并使用空格代替 %20
。我关注了 documentation .
但 id 总是按升序排列的。我做错了什么还是 Microsoft Graph 的错误?
最佳答案
SharePoint endpoints 当前不支持 $orderby
参数.目前仅支持 $select
、$expand
和 $filter
。
我建议访问 UserVoice并添加对此功能的请求。在提取 ListItem
资源集合时,它似乎很有值(value)。
顺便说一句,您还缺少 $
前缀:
items?$select=id&$orderby=id desc
忽略 $
前缀仅在 beta
端点上受支持。根据 documentation :
Note: On the
beta
endpoint, the$
prefix is optional.
关于microsoft-graph-api - SharePoint 列表项上的 Orderby 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47475991/