I have a folder in a document library and that contains subfolders and each subfolder contains files.
I want to retrieve all the files in these subfolders using REST. Any help?
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.Sign up to join this community
This endpoint solved my problem:
_api/Web/GetFolderByServerRelativeUrl('/Library Name/Folder Name/')?$expand=Folders,Folders/Files
For more information, check this article.