Microsoft Graph - 对 CalendarView 使用多个筛选器时出错

2024-04-17

我尝试得到一个CalendarView由两者过滤sensitivity and lastModifiedDateTime,但是当同时应用两个过滤器时,图形 API 会失败。如果我一次使用一个过滤器运行查询,它会按预期工作。经过测试,我发现是这样的lastModifiedDateTime这会导致错误。

我找不到任何文档说,当过滤时lastModifiedDateTime,仅支持一个过滤器。

我通过 Graph Explorer 运行查询。

查询失败:

应用了 2 个过滤器,其中一个是lastModifiedDateTime

https://graph.microsoft.com/v1.0/me/calendarview
  ?startdatetime=2018-10-28
  &enddatetime=2018-10-30
  &$filter=sensitivity eq 'normal' and lastModifiedDateTime ge 2018-10-29T00:00:00Z

它失败并出现以下错误:

{
    "error": {
        "code": "ErrorInternalServerError",
        "message": "An internal server error occurred. The operation failed.",
        "innerError": {
            "request-id": "<GUID>",
            "date": "<DateTime>"
        }
    }
}

有效的查询:

单滤镜开启sensitivity

https://graph.microsoft.com/v1.0/me/calendarview
  ?startdatetime=2018-10-28
  &enddatetime=2018-10-30
  &$filter=sensitivity eq 'normal'

单滤镜开启lastModifiedDateTime

https://graph.microsoft.com/v1.0/me/calendarview
  ?startdatetime=2018-10-28
  &enddatetime=2018-10-30&
  $filter=lastModifiedDateTime ge 2018-10-29T00:00:00Z

2个过滤器,但不是lastModifiedDateTime

https://graph.microsoft.com/v1.0/me/calendarview
  ?startdatetime=2018-10-28
  &enddatetime=2018-10-30
  &$filter=importance eq 'normal' and sensitivity eq 'normal'

我希望有人可以帮助我,或者澄清为什么它不能与多个过滤器一起使用lastModifiedDateTime参与。


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Microsoft Graph - 对 CalendarView 使用多个筛选器时出错 的相关文章

随机推荐