【问题标题】:Filter on Extended Properties using Microsoft Graph使用 Microsoft Graph 过滤扩展属性
【发布时间】: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


    【解决方案1】:

    propertyId 属性实际上是一个已知错误,我们正在推出修复程序。解决方法是改用 id 属性,如果还没有的话,应该在下周对大多数客户可用。文档也将在下周更新。

    干杯!

    Angelgolfer-ms

    【讨论】:

    • 谢谢。 id 属性有效。当下周开始推出错误修复时,“id”属性是否会继续受支持?我必须将 id 更改为 propertyId 吗?
    • 很高兴听到 id 属性对您有用!这是修复程序,您可以访问它。您不必将 id 改回 propertyId。此外,仅供参考,文档也已更新以反映使用 id 而不是 propertyId。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多