Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
We use the List files block to access files on our SharepointOnline site
How can we achieve recursion to navigate into subfolders without knowing the depth of folder hierarchy?
At the end, we want a list of all leafs (files), no matter how many subfolders exist and how deep hierarchy goes.
We want to avoid using a nested blocks scenario like this
Any ideas would be highly appreciated 👍
I tried this
But the process doesn't fork and it iterates only over the first branch of the tree.
Instead of using a single loop, break each process into specific labeled steps, allowing you to navigate between them using conditions that iterate through each step.
Unfortunately this doesn't seem to work with the List files on Sharepoint block. It stops after the first branch only reading folder 1 and file 2,3 but it doesn't proceed to folder 2. The program doesn't continue after the Go To Label block.
Figured out why, you cannot add blocks after a Go To Label block. They don't connect. Only the blue path is possible. After breaking the loop, it cannot reach the Output block below Go To Label 3 block (red path).