在SharePoint上的Orderby列表项不起作用 [英] Orderby on SharePoint list item does not work

查看:52
本文介绍了在SharePoint上的Orderby列表项不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用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 ?

推荐答案

$orderby参数/api-reference/v1.0/resources/sharepoint%5C"rel =" nofollow noreferrer> SharePoint端点.目前,仅支持$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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆