4

我正在尝试按类别过滤 Outlook 事件,但在查询时遇到问题。我尝试使用以下查询,但它们返回错误消息。

https://graph.microsoft.com/v1.0/me/events?$filter=startswith(Categories, 'test')

https://graph.microsoft.com/v1.0/me/events?$filter=contains(Categories, 'test')

我得到以下输出

"code": "BadRequest",
"message": "The argument for an invocation of a function with name 'contains' is not a single value. All arguments for this function must be single values.",

此查询的正确语法是什么?图表是否甚至支持按类别过滤事件?如果是这样,还有其他方法可以按类别过滤事件吗?

谢谢

4

1 回答 1

10

请使用以下语法: https ://graph.microsoft.com/v1.0/me/events ?$filter=categories/any(a:a+eq+'Red+Category')

于 2015-12-17T22:02:05.577 回答