Skip to content

Getting DriveItems under a folder #46

@champlin2

Description

@champlin2

I am able to get the DriveItems in the root of a user's OneDrive using the following:

children = await self.app_client.drives_by_id(drive.id).root().children().get()

And then I loop through the returned DriveItems and want to then get the items inside one of the folders but can't seem to get it to execute a GET to /drives/{drive-id}/items/{item-id}/children (which is in the url_template in the children_request_builder). I've tried the following with no luck:

children = await self.app_client.drives_by_id(drive.id).items_by_id(driveItem.id).children().get()

Would love some sample code if anyone has it along with which generated imports to pull in.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions