Get subfolder - query list not working

  • 6 August 2015
  • 2 replies
  • 34 views

Badge +8

Case:

  • Each meeting can have multiple nota's. Each nota can have multiple documents.
  • Each time a nota (list item with attachment) is created that belongs to a meeting, my WF creates a folder in a seperate document library, named as the meeting (it's a unique string)
  • Afterwards my WF creates a subfolder in the meeting folder, named as the ID of my nota (unique).
  • Then some more magic happens and my workflow ends

 

Problem:

  • When the attachments are deleted for one of my notes, I want to delete the subfolder as well
  • I would like to do a query list to find out whether a subfolder already exists having the ID of my nota as name
    • I check for "name = ID of my nota" as query
    • Does not work, I do not get any results at all
    • Works perfect for the first folder level (name = meeting name), not sublevel
    • Tried checking the "Recursive" checkbox already, no luck

 

Some great minds having a solution?


2 replies

Badge +8

One of my colleagues managed to solve this problem. It seems that the "Recursive" checkbox was not sufficient. However, when changing the "Recursive" in the CAML query to "RecursiveAll" all problems are solved and the subfolders are being retrieved.

Badge +1

Glenda, Glenda, Glenda

 

You are a life savor, wonder women, and what not....;)

Reply