Office365 Office 365:获取日历事件引发错误

Office365 Office 365:获取日历事件引发错误,office365,office365-restapi,Office365,Office365 Restapi,我正在使用“”REST API从给定的开始日期和结束日期时间之间的特定日历获取事件。发送以下查询参数时,将使用事件列表返回正确的响应 Array ( [$top] => 50 [$orderby] => Start [startDateTime] => 2016-02-02T00:00:00Z [endDateTime] => 2016-09-09T11:31:21Z ) 但是,如果上述查询参数如下图所示更改,则会返回“InternalS

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

)

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

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

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


感谢您的回复。是否有方法使用“同步事件”REST API根据事件的“修改时间”查询记录?除此之外,我注意到重复事件还有一个更改。如果编辑了任何一个事件(不是完整的系列),请稍早查询当通过REST API请求时,只接收到修改后的事件。但是现在,我得到的不是事件,而是序列主控作为响应,即使我只编辑了一个事件。最近是否有任何更改?