question

SyncUser-3783 avatar image
1 Vote"
SyncUser-3783 asked TobyPilling-6340 commented

Issue facing listing channels in newly created Team

We see an issue when listing channels in a new team. It doesn't retrieve all channels from the target Team by calling the API "https://graph.microsoft.com/v1.0/drives/<driveID>/root/children". It works on an existing teams in which people have manually added files.
It also works when we manually click on the files tab of the channel. If we click only Channels but not files, it does not work.

Please note, if we have created 5 channels in a team using API and click on only 2 channels then this api only retrieves 2 channels.

Steps I follow:-
1> Create New team
2> Create some channels in the new team
3> try to access the drives of these newly created channels so that we need to copy some files from an existing team's channel.

It does not give any errors.

PLEASE NOTE: This issue only happens when you have created a new team, added channels (all from code) BUT NOT clicked on any of the channel or files from UI.


I am using .net with c# to call this API

var client = new RestClient("https://graph.microsoft.com/v1.0/drives/<DRIVE_ID>/root/children");
var request = new RestRequest(Method.GET);
request.AddHeader("postman-token", "670114f5-f11d-62de-245e-5a5f8f833b44");
request.AddHeader("cache-control", "no-cache");
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer <TOKEN>");
IRestResponse response = client.Execute(request);

We are struggling with this from a long time. SOMEBODY, please help us. Our users are facing too much hassle because of this.

Thanks in Advance

microsoft-graph-sdk
· 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.

@CarlZhao-MSFT we have created a new issue here - is this clear enough?

0 Votes 0 ·

0 Answers