【发布时间】:2016-09-14 14:29:35
【问题描述】:
我尝试通过 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
您能否确认,graph api 端点不允许按 lastModifiedDateTime 排序?
【问题讨论】: