我正在尝试在聊天中提取最近的消息。我的图形查询如下
https://graph.microsoft.com/v1.0/me/chats/{chatId}/messages?$filter=lastModifiedDateTime gt 2022-07-27T07:13:28.000z
查询有效,但我得到以下响应
The query specified in the URI is not valid. Query option 'Filter' is not allowed.
To allow it, set the 'AllowedQueryOptions' property on EnableQueryAttribute or QueryValidationSettings.
此消息看起来像是服务器端错误/消息。是否可以对MSGraph端点执行DateTime筛选?
根据此,端点
GET /me/chats/{chatId}/messages
不支持筛选。
仅端点
GET /teams/{team-id}/channels/{channel-id}/messages/delta
支持lastModifiedDateTime
和操作员gt
进行过滤,但最多只能返回8个月。