我正在使用“同步事件”REST API 从给定开始和结束日期时间之间的特定日历获取事件。发送以下查询参数时,通过事件列表获取正确的响应。
Array
(
[$top] => 50
[$orderby] => Start
[startDateTime] => 2016-02-02T00:00:00Z
[endDateTime] => 2016-09-09T11:31:21Z
)
但是,如果上面的查询参数如下所示发生更改,则会返回“InternalServerError”消息。
Array
(
[$top] => 50
[$orderby] => DateTimeLastModified
[$filter] => DateTimeLastModified ge 2016-03-09T07:12:19Z
[startDateTime] => 2016-02-02T00:00:00Z
[endDateTime] => 2016-09-09T11:33:03Z
)
例外:
Array
(
[error] => Array
(
[code] => ErrorInternalServerError
[message] => Object of type 'System.Linq.Expressions.Expression`1[System.Func`2[Microsoft.Exchange.Entities.DataModel.Items.Item,Microsoft.Exchange.ExchangeSystem.ExDateTime]]' cannot be converted to type 'System.Linq.Expressions.Expression`1[System.Func`2[Microsoft.Exchange.Entities.DataModel.Calendaring.Event,Microsoft.Exchange.ExchangeSystem.ExDateTime]]'.
)
)
任何人都可以提出这个错误背后的原因吗?