创建新的O365订阅时,查询参数请求无效

时间:2018-06-10 05:35:31

标签: microsoft-graph outlook-restapi

当我尝试为event资源创建webhook订阅时,我收到以下错误:

/me/events?$filter=singleValueExtendedProperties/Any(ep: ep/id eq 'String%20{+propertyIdentifier+}%20Name%20+propertyGuid+' and contains(ep/value, 'value'))

propertyIdentifierpropertyGuid是使用的自定义值

收到以下回复:

{
  "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只是间歇性地失败,并且想要了解它为什么会失败。

1 个答案:

答案 0 :(得分:0)

您无法在contains参数中使用$filter。来自documentation

  
    

注意: Azure AD资源不支持以下$filter运算符:negtge,{{1} },ltle任何Microsoft Graph资源目前都不支持not字符串运算符。

  
相关问题