Microsoft graph api Microsoft Graph-对CalendarView使用多个筛选器时出错
我尝试获取一个Microsoft graph api Microsoft Graph-对CalendarView使用多个筛选器时出错,microsoft-graph-api,outlook-restapi,Microsoft Graph Api,Outlook Restapi,我尝试获取一个日历视图,该视图通过敏感度和lastModifiedDateTime进行过滤,但同时应用这两个过滤器时,graph API失败。如果我一次使用一个过滤器运行查询,它将按预期工作。通过测试,我发现是lastModifiedDateTime导致了错误 我还没有找到任何文档说明,在lastModifiedDateTime上进行过滤时,只支持一个过滤器 我通过图形浏览器运行查询 失败的查询: 应用了两个筛选器,一个是lastModifiedDateTime https://graph.mi
日历视图
,该视图通过敏感度
和lastModifiedDateTime
进行过滤,但同时应用这两个过滤器时,graph API失败。如果我一次使用一个过滤器运行查询,它将按预期工作。通过测试,我发现是lastModifiedDateTime
导致了错误
我还没有找到任何文档说明,在lastModifiedDateTime
上进行过滤时,只支持一个过滤器
我通过图形浏览器运行查询
失败的查询:
应用了两个筛选器,一个是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
https://graph.microsoft.com/v1.0/me/calendarview
?startdatetime=2018-10-28
&enddatetime=2018-10-30&
$filter=lastModifiedDateTime ge 2018-10-29T00:00:00Z
https://graph.microsoft.com/v1.0/me/calendarview
?startdatetime=2018-10-28
&enddatetime=2018-10-30
&$filter=importance eq 'normal' and sensitivity eq 'normal'
它失败,出现以下错误:
{
“错误”:{
“代码”:“ErrorInternalServerError”,
“消息”:“发生内部服务器错误。操作失败。”,
“内部错误”:{
“请求id”:“,
“日期”:”
}
}
}
有效的查询:
单个过滤器开启灵敏度
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=sensitivity eq 'normal' and lastModifiedDateTime ge 2018-10-29T00:00:00Z
https://graph.microsoft.com/v1.0/me/calendarview
?startdatetime=2018-10-28
&enddatetime=2018-10-30&
$filter=lastModifiedDateTime ge 2018-10-29T00:00:00Z
https://graph.microsoft.com/v1.0/me/calendarview
?startdatetime=2018-10-28
&enddatetime=2018-10-30
&$filter=importance eq 'normal' and sensitivity eq 'normal'
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
https://graph.microsoft.com/v1.0/me/calendarview
?startdatetime=2018-10-28
&enddatetime=2018-10-30&
$filter=lastModifiedDateTime ge 2018-10-29T00:00:00Z
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
时,为什么它不能与多个过滤器一起工作