Hi,
I have one site "mySite" with "documentLibrary". Inside I have "PATIENTS" folder :

I don't find the way, in javascript, to get all sub-folders of "PATIENTS" folder starting by "CA" for example.
I have tried differents method with :
search.query({query: "PATH:/app:company_home/st:sites/cm:mySite/cm:documentLibrary/cm
ATIENTS//*"});
OR
search.xpathSearch("/app:company_home/st:sites/cm:mySite/cm:documentLibrary/cm
ATIENTS//*");
OR
search.luceneSearch("TYPE:\"cm:folder\" AND @cm\\:title:\"*"+filterTerm+"*\"");
without success...
Thank you
PS : each sub-folder is created by a java mechanism. Is-it possible that a parameter or an action ( may-be permission), during the sub-folder creation, can cancel the sub-folder scan ?
Thank you