I am looking to write a CAML query that returns all folders recursively starting at a certain folder.
CAML Designer has helped me to get this far:
<ViewFields> <FieldRef Name='FileRef' /> </ViewFields> <Where> <And> <Eq> <FieldRef Name='ContentType' /> <Value Type='Computed'>Folder</Value> </Eq> <Eq> <FieldRef Name='FSObjType' /> <Value Type='Integer'>1</Value> </Eq> </And> </Where> <QueryOptions> <ViewAttributes Scope='RecursiveAll' /> </QueryOptions>
This query starts at the root of the list. I want to start one level down in a particular folder. Can someone show me how to do that?
I thought to require that the name of the item contain /startingfolder/, but it seems that I can't but the
/ in the "contains" specification. How does one specify a string that contains a '/'?