0

我正在使用“同步事件”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]]'.
        )

)

任何人都可以提出这个错误背后的原因吗?

4

1 回答 1

0

根据文档,您不能将$filter参数与同步一起使用。

您不能使用 $filter、$count、$select、$skip、$top 和 $search 查询参数。

于 2016-03-09T13:01:51.127 回答