【发布时间】:2016-08-12 23:23:52
【问题描述】:
https://graph.microsoft.io/en-us/docs/api-reference/beta/api/singlevaluelegacyextendedproperty_get
在本文档中,在“使用 $filter 获取资源实例”部分下,有以下示例:
获取消息实例:
GET /me/messages?$filter=singleValueExtendedProperties/Any(ep: ep/propertyId eq '{propertyId_value}' and ep/value eq '{property_value}')
当我使用图形资源管理器对其进行测试时:https://graph.microsoft.io/en-us/graph-explorer
GET https://graph.microsoft.com/beta/me/messages?$filter=singleValueExtendedProperties/Any(ep: ep/propertyId eq 'String {00062008-0000-0000-C000-000000000046} Name TestPropertName' and ep/value ne null)
我遇到了这个异常:
“错误”:{
"code": "BadRequest",
"message": "在类型 'microsoft.graph.singleValueLegacyExtendedProperty' 上找不到名为 'propertyId' 的属性。",
“内部错误”:{
“请求 ID”:“1224fbd4-f033-4897-b1c0-bef1bf3116f8”,
“日期”:“2016-08-12T23:10:57”
} }
为什么找不到propertyId?
此外,我在调用时看到同样的错误
GET /me/messages/<id>?$expand=singleValueExtendedProperties($filter=propertyId eq '{propertyId_value}')
【问题讨论】:
标签: outlook microsoft-graph-api