How to get Get all folder and subfolder of SP Documents using REST API ?
Get all folder and Subfolder of SP Documents using a REST API :
You can get all the folders of Documents by using below REST API.
"/_api/web/lists/getbytitle('Documents')/items?$select=FileLeafRef,FileRef&$filter=FSObjType eq 1"
OR
"/_api/web/lists/getbytitle('Documents')/items?$select=FileLeafRef,FileRef&$filter=ContentType eq 'Folder"
Comments
Post a Comment