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("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