'Access subsite from parent site using sharepoint rest api
I am trying to get all the folders in the subsite, the below URL returns all the folders inside my subsite when I use the subsite in the URI
I am using Mulesoft on new object oob sharepoint connector.
https://mycompany.sharepoint.com/sites/Test2/projects/mysubsite/_api/web/GetFolderByServerRelativeUrl('documents')/Folders
but I need to access it via a relative URL that does not return any folders, can anyone help me understand what I am doing wrong here.
Test2 is my parent site, projects is a web part and mysubsite is a site under which we have the folder
https://mycompany.sharepoint.com/sites/Test2/_api/web/GetFolderByServerRelativeUrl('sites/Test2/projects/mysubsite/documents')/Folders
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
