Outlook REST API $filter 具有 'eq' 和 'ne' 之间的任何未注册差异
Outlook REST API $filter with any not registering difference between 'eq' and 'ne'
我正在尝试创建一个查询来获取 Outlook 联系人,但排除电子邮件地址包含特定域(比方说 'abc.com')的联系人。这是我的查询 运行:
https://outlook.office.com/api/v2.0/me/contacts?$format=json&$filter=EmailAddresses/any(e:%20e/Address%20ne%20'abc.com')
但是回复就像我在使用 eq
- 它 returns 联系人只有 'abc.com' 的电子邮件。
我尝试用 all
切换 any
因为我读到 all
在尝试排除项目时使用,但是当我使用 all
时我得到:
400 错误请求
{
"error": {
"code": "ErrorInvalidUrlQueryFilter",
"message": "The query filter contains one or more invalid nodes."
}
}
我一直在使用 OAuth Sandbox 来测试我的查询。我的查询不正确吗?我是不是用错了过滤器?
如您在 this documentation 中所见,无法使用 EmailAddress 过滤联系人(可过滤?否)。这就是请求没有 return 有效数据的原因。
我正在尝试创建一个查询来获取 Outlook 联系人,但排除电子邮件地址包含特定域(比方说 'abc.com')的联系人。这是我的查询 运行:
https://outlook.office.com/api/v2.0/me/contacts?$format=json&$filter=EmailAddresses/any(e:%20e/Address%20ne%20'abc.com')
但是回复就像我在使用 eq
- 它 returns 联系人只有 'abc.com' 的电子邮件。
我尝试用 all
切换 any
因为我读到 all
在尝试排除项目时使用,但是当我使用 all
时我得到:
400 错误请求
{
"error": {
"code": "ErrorInvalidUrlQueryFilter",
"message": "The query filter contains one or more invalid nodes."
}
}
我一直在使用 OAuth Sandbox 来测试我的查询。我的查询不正确吗?我是不是用错了过滤器?
如您在 this documentation 中所见,无法使用 EmailAddress 过滤联系人(可过滤?否)。这就是请求没有 return 有效数据的原因。