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 に答える