使用Microsoft Graph过滤扩展属性

时间:2016-08-12 23:23:53

标签: outlook microsoft-graph

https://graph.microsoft.io/en-us/docs/api-reference/beta/api/singlevaluelegacyextendedproperty_get

在本文档中,在“使用$ filter的GET资源实例”部分下,它有以下示例:

获取消息实例:

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'的属性。”,
  “innerError”:{
  “request-id”:“1224fbd4-f033-4897-b1c0-bef1bf3116f8”,

  “日期”:“2016-08-12T23:10:57”
  }   }

为什么找不到propertyId

此外,我在调用

时看到同样的错误
GET /me/messages/<id>?$expand=singleValueExtendedProperties($filter=propertyId eq '{propertyId_value}')

0 个答案:

没有答案
相关问题