0

I am working on a Power Automate solution to mirror the contents of a network drive (using the File System connector via on-premises data gateway) into a SharePoint document library.

The folder I want to sync (X:\TEST) contains multiple levels of subfolders, and the depth of the folder structure can increase in the future (currently about 5-6 levels).

My current flow uses the File System → List files in folder → loop through items → conditionally create folders and upload files to SharePoint. This works for one level, but I want to make it recursive to handle any future folder depth dynamically, without manually duplicating the “List files” and “Apply to each” actions for each subfolder level.

I tried using a child flow that calls itself recursively (Run a Child Flow → same child flow), but Power Automate gives an error saying the child flow must end with a response action.

My key question

  • Is there a Power Automate-supported way to create a recursive flow (parent → child or self-recursive) for dynamically traversing unknown folder depths?

  • Or is the only solution to manually repeat the folder listing logic a fixed number of times?

  • Are there better ways to achieve this within Power Automate ?

Appreciate any best practices or examples from anyone who has solved a similar problem.

Thanks in advance!

This is the current outline of my Parent and Child flows.

Parent FlowChild Flow

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.