按lastModifiedDatetime筛选Onedrive项目

塞巴斯蒂安·佩特斯(Sebastien Pertus)

我尝试通过lastModifiedDatetime属性从Microsoft Graph端点中筛选OneDrive项目。

像这样的东西:

https://graph.microsoft.com/beta/me/drive/special/photos/children?$top=3&$orderBy=lastModifiedDatetime

它不起作用。返回的错误是:

“ message”:“系统不支持该请求。”

但是根据文档(https://dev.onedrive.com/odata/optional-query-parameters.htm#optional-odata-query-parameters

oderby:用逗号分隔的属性列表,用于对响应集合中项目的顺序进行排序。适用于名称,大小和lastModifiedDateTime字段。

顺便说一句,我试图用name属性进行排序,它实际上按预期工作:

https://graph.microsoft.com/beta/me/drive/special/photos/children?$top=3&$orderBy=lastModifiedDatetime

您是否可以确认图api端点不允许lastModifiedDateTime进行排序

马雷克·里查斯基(Marek Rycharski)

OneDrive for Business不支持按lastModifiedDateTime进行筛选。OneDrive Personal支持它。该限制并不特定于Microsoft Graph端点。在参考的文档页面中有关于它的注释。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章