我尝试得到一个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
参与。