Forum Discussion
jaimeirala
Aug 23, 2019Copper Contributor
MS Teams Graph API : Number of messages returned by GET /messages
Hi, We are working in an integration with Graph Api and Teams, but testing GET /teams/{id}/channels/{id}/messages we get a number of messages that we don't understand. We have a channel with ...
VasilMichev
Aug 23, 2019MVP
There's a reason this endpoint is still Beta, there has been various issues with it. Moreover it doesn't support the regular OData parameters and you are forced to work with $top only, which as you've already noticed is not really reliable. Just spam the @odata.nextLink, you need to handle it anyway if you want to cover all messages. And don't forget that no replies are returned by this query.
jaimeirala
Aug 26, 2019Copper Contributor
VasilMichev Thanks for your answer. I know... we were expecting a flag or a count for replies in the response for every message to avoid requesting every message again just to check if there are replies... i hope they add that soon.
We will have to work with nextLink by now...