question

GettingDriveitems-5785 avatar image
0 Votes"
GettingDriveitems-5785 asked JimmyYang-MSFT edited

Can not access all drive items


I am trying to access drive items of my joined teams. I do get drives through the API and then I try to get items in that drive.

there are a total of 6 drive items but I only get 4. I do not get the other 2. Not sure what the reason is.

I make the following calls

var AllDrives = await graphClient.Groups[joinedTeams[t].Id].Drives.Request().GetAsync();

This gets me the drive

var children = await graphClient.Drives[AllDrives[d].Id].Root.Children.Request().GetAsync();

And this gets me all the folders/channels on the drive except 2 of them


office-teams-app-dev
· 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.

Hi @GettingDriveitems-5785

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your issue is more related to Teams API, which is not in our support scope. I will remove teams tag and add teams-app-dev tag. Thanks for your understanding and patience!

0 Votes 0 ·

1 Answer

GettingDriveitems-5785 avatar image
0 Votes"
GettingDriveitems-5785 answered

This is how the channels/folder are arranged in my teams

119339-capture.png



capture.png (7.4 KiB)
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.