Outlook 使用Microsoft Graph对扩展属性进行筛选

Outlook 使用Microsoft Graph对扩展属性进行筛选,outlook,microsoft-graph-api,Outlook,Microsoft Graph Api,在本文档中,在“使用$filter获取资源实例”部分下,有以下示例: 获取消息实例: GET /me/messages?$filter=singleValueExtendedProperties/Any(ep: ep/propertyId eq '{propertyId_value}' and ep/value eq '{property_value}') 当我使用图形浏览器进行测试时: 我得到了一个例外: “错误”:{ “代码”:“BADDREQUEST”, “消息”:“在类型“micros

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

获取消息实例:

GET /me/messages?$filter=singleValueExtendedProperties/Any(ep: ep/propertyId eq '{propertyId_value}' and ep/value eq '{property_value}')
当我使用图形浏览器进行测试时:

我得到了一个例外:

“错误”:{
“代码”:“BADDREQUEST”,
“消息”:“在类型“microsoft.graph.singleValueLegacyExtendedProperty.”上找不到名为“propertyId”的属性,
“innerError”:{
“请求id”:“1224fbd4-f033-4897-b1c0-bef1bf3116f8”,
“日期”:“2016-08-12T23:10:57”
} }

为什么找不到
属性ID

此外,我在调用时也看到了相同的错误

GET /me/messages/<id>?$expand=singleValueExtendedProperties($filter=propertyId eq '{propertyId_value}')
GET/me/messages/?$expand=singleValueExtendedProperties($filter=propertyId eq'{propertyId_value}')

propertyId属性实际上是一个已知的bug,我们正在推出修复程序。修复方法是使用id属性,如果尚未提供,大多数客户将在下周提供该属性。这些文件也将在下周更新

干杯


安吉尔高尔夫球手ms

谢谢。id属性有效。当bug修复程序下周开始推出时,“id”属性会继续得到支持吗?我是否必须将id更改为propertyId?很高兴听到id属性适用于您!这是修复程序,您可以访问它。您不必将id更改回propertyId。此外,仅供参考,文档也已更新,以反映使用id而不是propertyId。
GET /me/messages/<id>?$expand=singleValueExtendedProperties($filter=propertyId eq '{propertyId_value}')