当我尝试为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只是间歇性地失败,并且想要了解它为什么会失败。
答案 0 :(得分:0)
您无法在contains
参数中使用$filter
。来自documentation:
注意: Azure AD资源不支持以下
$filter
运算符:ne
,gt
,ge
,{{1} },lt
和le
。 任何Microsoft Graph资源目前都不支持not
字符串运算符。