Issue facing listing channels in newly created Team

SyncUser 6 Reputation points
2022-05-27T13:03:28.903+00:00

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
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,587 questions
{count} vote