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

Popular posts from this blog

Get list item entity type full name of a SharePoint list using REST API

Get SharePoint list name by GUID

Get Current Web Logged In User of SharePoint Site in jQuery