Tracking message reactions added retroactively using getAllMessages

Liav Regev 20 Reputation points
2025-05-27T12:24:09.0666667+00:00

Hi, I'm using the Graph API endpoint: GET /users/{userId}/chats/getAllMessages?model=B&$filter=lastModifiedDateTime gt {from} and lastModifiedDateTime lt {to}

As per: https://learn.microsoft.com/en-us/graph/api/chats-getallmessages?view=graph-rest-1.0&tabs=http

I expected that if someone adds a reaction to an old message, that message’s lastModifiedDateTime would update, and it would show up in this query. But it doesn't seem to work that way, as only edit and deletion events affect the lastModifiedDateTime field, so the message doesn’t get returned when I query a date range that includes the time I added the reaction.

Is this expected behavior? And if so, is there any way to track reactions added to previously-read messages?

Thanks!

Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Aashutosh Tiwari - MSFT 435 Reputation points Microsoft External Staff
    2025-05-27T12:47:56.81+00:00

    Hi @Liav Regev,

    Thanks for posting question on Microsoft Forum,

    To answer your question, this behavior is expected. The lastModifiedDateTime field in Microsoft Graph's getAllMessages API only updates when a message is edited or deleted, but not when a reaction is added.

    As of now, there isn't a direct way to track reactions added to previously-read messages using this endpoint but you may consider using the delta query feature in Microsoft Graph to track changes in messages over time, or explore the chatMessageReaction resource to retrieve reactions separately.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.