当我尝试为event
资源创建 webhook 订阅时,我收到以下错误:
/me/events?$filter=singleValueExtendedProperties/Any(ep: ep/id eq 'String%20{+propertyIdentifier+}%20Name%20+propertyGuid+' and contains(ep/value, 'value'))
propertyIdentifier
和propertyGuid
是使用的自定义值
收到以下答复:
{
"error": {
"code": "InvalidRequest",
"message":
"Workload resource uri query string is not support. Querystring: %24filter=SingleValueExtendedProperties%2fany(ep%3aep%2fPropertyId+eq+%27String+%7bpropertyIdentifier%7d+Name+propertyGuid+and+contains(ep%2fValue%2c%27value%27))",
"innerError": {
"request-id": "2422c28b-41ba-46d8-8ee9-5a28b2d814de",
"date": "2018-06-08T17:31:07"
}
}
}
我看到 API 只是间歇性地失败,并想了解它失败的原因。
不能在$filter
参数中使用contains
。从文档中:
注意:Azure AD 资源不支持以下
$filter
运算符:ne
、gt
、ge
、lt
、le
和not
。contains
字符串运算符目前在任何 Microsoft 图形资源上都不受支持。