在SharePoint上的Orderby列表项不起作用 [英] Orderby on SharePoint list item does not work
问题描述
我正在尝试使用Microsoft Graph订购一系列列表项:
I'm trying to order a collection of list items with Microsoft Graph :
.../items?select=id&orderby=id%20desc
我尝试了多个属性,并使用空格而不是%20
.我遵循了文档.
I've tried on multiple properties and with a space instead of %20
. I've followed the documentation.
但是ID总是按升序排列.我是在做错什么还是Microsoft Graph的错误?
But ids are always ordered ascending. Am I doing anything wrong or is it a bug with Microsoft Graph ?
推荐答案
$select
,$expand
和$filter
.
The $orderby
parameter is not currently supported by the SharePoint endpoints. At this time only $select
, $expand
, and $filter
are supported.
我建议访问 UserVoice 并添加对此功能的请求.提取ListItem
资源的集合似乎很有价值.
I recommend visiting the UserVoice and adding a request for this feature. It seems like it would be valuable when pulling a collection of ListItem
resources.
顺便说一句,您还缺少$
前缀:
As an aside, you're also missing the $
prefix:
items?$select=id&$orderby=id desc
仅在beta
端点上支持忽略$
前缀.根据文档:
Ignoring the $
prefix is only supported on the beta
endpoint. Per the documentation:
注意:在
beta
端点上,$
前缀是可选的.
Note: On the
beta
endpoint, the$
prefix is optional.
这篇关于在SharePoint上的Orderby列表项不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!