Man*_*chs 1 odata microsoft-graph-api
根据MS Graph API 文档,businessPhones支持在带有eq比较的$filter查询中使用,就像imAddresses属性一样。

在检查 Microsoft 的使用查询参数文档时,有一个示例,其中在集合过滤器中使用imAddresses属性,并且它工作得很好。
GET https://graph.microsoft.com/v1.0/users?$filter=imAddresses/any(s:s eq 'admin@contoso.com')
我的目标是列出在其BusinessPhones集合属性中具有特定电话号码的所有用户。但是,当我尝试在类似查询中使用businessPhones属性时,该查询无法按预期工作。
GET https://graph.microsoft.com/v1.0/users?$filter=businessPhones/any(s:s eq '1234')
状态代码:400
{
"error": {
"code": "Request_UnsupportedQuery",
"message": "Unsupported or invalid query filter clause specified for property 'businessPhones' of resource 'User'.",
"innerError": {
"date": "2021-07-30T08:07:24",
"request-id": "ac3923be-de11-448f-b2b5-245edc82d20e",
"client-request-id": "ac3923be-de11-448f-b2b5-245edc82d20e"
}
}
}
Run Code Online (Sandbox Code Playgroud)
对我所缺少的有什么想法吗?
| 归档时间: |
|
| 查看次数: |
1147 次 |
| 最近记录: |