2
votes

I'm using the List Children of a driveItem endpoint as described https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_list_children to list the contents of folders and using the nextLink property where appropriate. This works really well with OneDrive but when listing the driveItems inside a SharePoint site I get the first 200 items and a next link which just returns the last 2 and no further nextLink. I've also tried manually setting a $top value but this didn't help.

Not sure whether this a bug with the API but any assistance would be much appreciated.

1

1 Answers

0
votes

According to your descriptions, I assume you want to use the API 'https://graph.microsoft.com/v1.0/sites/{site-id}/lists'.

Based on my test, when we list all the websites by TOP query, the ‘NextURL’ will not exist in the response, if there are less than 400 websites.

Do your SharePoint site collect have more than 400 SharePoint sites? If not, how many site do you have ?