You can use https://learn.microsoft.com/en-us/graph/api/chatmessage-delta?view=graph-rest-beta&tabs=http and have a filter on lastModifiedTime to get similar behavior and then stop once you have reached the time where you want to stop. The order in this API is oldest to newest instead of newest to oldest.
Microsoft Teams API: Filtering channel messages by date
Kacper Florianski (Telepat North)
1
Reputation point
Hi,
I know some of the existing Microsoft API-s support the $filter
query, which allows me to, for example, filter data based on the create/send/receive (etc.) timestamps.
I am in need of doing something similar for Microsoft Teams. More specifically, I'd like to filter by createdDateTime
. For example, I could query: ...channels/<id>/messages/<id>?$filter=(createdDateTime ge 2015-02-12T18:58:01.624Z and createdDateTime le 2020-07-31T18:58:01.624Z)
.
I'd like to know if this query parameter will be introduced at all, and when if so.
Microsoft Security | Microsoft Graph
13,733 questions
1 answer
Sort by: Most helpful
-
Ramjot Singh 861 Reputation points Microsoft Employee
2021-08-16T18:20:30.043+00:00