Get all SharePoint files and folders of a drive using Microsoft Graph API

后端 未结 2 1108
悲&欢浪女
悲&欢浪女 2020-12-19 18:38

My problem is: if I call https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/children all I get are the top-level items of that drive.

2条回答
  •  太阳男子
    2020-12-19 19:24

    I found that the below endpoint retrieves all files and folders in a library. The result will be paged, with a standard page size of 200 items.

    /drives/{drive-id}/list/items
    

提交回复
热议问题