I'm using workflow with a rest webservice to retrieve all empty folders for a document library.

We want to email the administrator when a certain folder does not contain a document.

We have managed to created a workflow and retrieve all the empty folders in a document library, it does not retrieve the subfolders.

We have used this soluton:


enter image description here If you look at the results it displays it only shows the parrent folders, is there any way to retrieve one list with all the folders and sub folders?

Thanks in advance and kind regards, Raymond Peters

  • This might help you – kei Oct 14 '14 at 14:02
  • Thank you but this solution only queries subfolders within a folder. I'm looking for a solutions that runs from the top of the library and then retrieves all of the parent folders and subfolders. – Raymond Peters Oct 14 '14 at 14:42
  • You'll probably need to get the parent folders first, then go through each one to get the subfolders. This would probably need to be recursive as well to get any subfolders in the subfolder. – kei Oct 14 '14 at 14:50
  • Yes I can try this approach, would have bin nice to have a webservice which returns them all would save me some time. Thank you for the quick reply. – Raymond Peters Oct 14 '14 at 14:58

Your Answer

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

Browse other questions tagged or ask your own question.