AnsweredAssumed Answered

javascript iterate object in start node

Question asked by patrickvanhoof on Jun 19, 2017
Latest reply on Jun 20, 2017 by patrickvanhoof

Hi all,

 

I use following javascript (only snippet of the code):


function main() {

   if (document.isContainer && document.name == "Gescande dossiers")
    {

        processNode(document);
    }
}

main();

 

I have a rule defined on the document library that executes that script, when folder "Gescande dossiers" is found it should continue. But it seems this is only iterating documents in the current folder, not the subfolders.

Function main() does not iterate on all object in the folder?

 

Thanks,

Patrick

Outcomes