sharepointmicrosoft-graph-apionedrive

graph shares root api can not return more than 200 items


I try to fetch all items in a shared sharepoint folder. Currently i am using:

"https://graph.microsoft.com/v1.0/shares/u!{folder}=/root?expand=children"

Response:

"children": [] // max 200 items
"folder": {
   "childCount": 216
},

I want to get all 216 Items. I tried

Am i missing something?


Solution

  • I would try directly access children

    GET /v1.0/shares/u!{folder}=/root/children
    

    For many endpoints, $expand doesn't return all items