
Announcements
Hello Everyone.
Using the Microsoft Graph API you can get the number of messages from a chat channel, like this:
Can this query be expanded to then filter through all those messages and display only those which were created/modified in the last 7 days?
Thanks so much for any advice.
Hi @ianwuk,
I would suggest to have a look at the Get channel messages delta method.
That method also supports filtering on lastModifiedDateTime.
https://graph.microsoft.com/v1.0/teams/<groupid>/channels/<channelid>/messages/delta?$filter=lastModifiedDateTime gt 2023-05-04T07:13:28.000z