Skip to content

Enumeration of sharepoint items returns an empty result #784

Closed Answered by Hrrusha
Hrrusha asked this question in Q&A
Discussion options

You must be logged in to vote

Answering my own question :-))

It seems that the RootRequestBuilder does not have the children property, but ItemRequestBuilder does.
So the idea is to interact with the root via the the items resource:

records = await (client .drives .by_drive_id(driveid) .items .by_drive_item_id(rootid) .children .get() )

where rootid is given by the following request builder:

client.drives.by_drive_id(driveid).root.

P.S
Please let me know if there is a straightforward way to do it that I simply missed.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Hrrusha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant