Microsoft-graph-docs: lastUpdatedDateTime doesnt change

Created on 25 Oct 2019  Â·  6Comments  Â·  Source: microsoftgraph/microsoft-graph-docs

Hi there,
I get the list of the chats via me/chats/, but even after having conversations, the lastUpdatedDateTime always remains the same. I need to make further GET calls to chats/{id}/messages (and then POST too), but only for recent chats (not all the chats as it may get bulky over time). I was planning to do this via recent lastUpdatedDateTime which never changes for some reason. So currently I have to loop each chat (fetched from me/chats/) -> get the ID for each chat -> call chats/{id}/messages for each ID, get createdDateTime for each message and based on that createdDateTime of message (inside the chat object), I get to know if this chat is recent one or not. Shouldn't it just update on the lastUpdatedDateTime?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

teams product messaging

Most helpful comment

Also if you can suggest a better way it will be hugely appreciated.  All I am trying to do is find out all the recent chats received by a particular user (lets say within the last 30 seconds) and echo it back. I am able to get/post but can't seem to find a faster way around finding recent chats (since my way may be problematic if we scale it with more users).

All 6 comments

Also if you can suggest a better way it will be hugely appreciated.  All I am trying to do is find out all the recent chats received by a particular user (lets say within the last 30 seconds) and echo it back. I am able to get/post but can't seem to find a faster way around finding recent chats (since my way may be problematic if we scale it with more users).

Hi, any update on this please?

Hi, I'm waiting for the fix as well.

Wow, six months later and no update on this, that's a really poor show Microsoft.

Confirming that this is still an open issue. I am able to filter results with the OData query parameters, but the underlying data never updates the lastUpdatedDateTime.
https://graph.microsoft.com/beta/me/chats/?$filter=date(lastUpdatedDateTime) ge 2020-10-11T15:09:36Z&$select=id,lastUpdatedDateTime

@AnkitsCode
Looks like they consider this one differently given the update to the documentation in this pull request-
https://github.com/microsoftgraph/microsoft-graph-docs/pull/9221
lastUpdatedDateTime evidently refers to when the chat was renamed or membership changes. Certainly a less useful parameter.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrewfabrizi picture andrewfabrizi  Â·  3Comments

GregSpyra picture GregSpyra  Â·  4Comments

findyoucef picture findyoucef  Â·  4Comments

fredericklin picture fredericklin  Â·  3Comments

aaronrogers picture aaronrogers  Â·  3Comments