question

KitsonS-7984 avatar image
0 Votes"
KitsonS-7984 asked Deva-MSFT commented

MS Teams conversation/message created by MS Graph REST API could not completely load by Teams mobile app

We used MS Graph REST API to create conversations and messages (over 20000 messages) in Team's private channel at 14 Jan 2021 at once, and then create a few conversations and messages to the same channel again at 18 Jan 2021. All the conversations and messages can be loaded successfully at Teams desktop application (Win10) and Teams on the web, but cannot load the conversations and messages by Teams Android app and iPhone app.

The API we used as below:
Create channel message: https://graph.microsoft.com/beta/teams/{0}/channels/{1}/messages
Reply message: https://graph.microsoft.com/beta/teams/{0}/channels/{1}/messages/{2}/replies

microsoft-graph-teamwork
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I am able to see messages and replies created using the steps on teams for desktop and mobile. Are you able to view the messages using Graph eg. GET /teams/{id}/channels/{id}/messages. If so then I think the issue is with the teams mobile client you are using because other clients can read the messages. May be version could be as these are beta.


0 Votes 0 ·

1 Answer

Deva-MSFT avatar image
0 Votes"
Deva-MSFT answered Deva-MSFT commented

If you're handling tons of data, then consider using Microsoft Graph pagination and then give a try to see if it helps. You may be the facing the above issue may be due to that as well. It's the recommendation and a best practice that i can suggest here.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

My company's staff relies on reading this messages by MS Teams mobile when they are working outdoor. Does it mean MS Teams mobile app could not load tons of messages which are created by MS Graph API?

0 Votes 0 ·

Please read the suggestion is to use pagination when you pull/load the data is a best practice. Even if you implement that still the users have ability to scroll through page to page and check the messages/load when needed. Just this avoid the data's fetched/dumped all in once.

0 Votes 0 ·