I want to retrieve Subfolders using SP REST API and check if there is any created folder and If it exists, display HTML content like: <label>SubFolder Title</label> for each SubFolder. All dynamically. Can someone help me?


  • Folder Level 1
    • Folder Level 1.1
      • Folder Level 1.1.1
  • Folder Level 2
    • Folder Level 2.2
  • Folder Level 3


Have you tried something like this?


It'll return a path, which than could be split and represented the way you need to.

/sites/Testing/Shared Documents/Parent Docs

/sites/Testing/Shared Documents/Parent Docs/Child Docs

/sites/Testing/Shared Documents/Parent Docs/Child Docs

/sites/Testing/Shared Documents/Parent Docs/Child Docs/Child Docs

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.