Power Automate Child Flow

Last modified date

Occasionally it is useful to break your flow apart into separate flows. For this you need to create a child flow or two. There is one tweak I always forget, hence this post.

Create the Child Flow

When building child flows you need to follow these rules

  • Child flows need to be built inside a solution
  • The trigger needs to be a Manually trigger a flow. Add inputs to the trigger.
  • To return values back to the parent flow the last action should a Respond to PowerApp of Flow action.
Child flow with showing Manual trigger, get weather action and Respond to Power App action

Above is a very simple example. The trigger has an input of location and the child flow will return 3 values.

Calling the Child Flow

Now you have created your child flow and tested that it works you can now call it. In the parent flow, add the action Run a child flow. Select your child flow and populate the inputs.

Snapshot showing the Run a child flow in the action list and the Run a child flow action once added to your flow
As soon as you add this you will probably get an error in the flow checker. Stating “Update the child flow for action ‘Run a child flow’ to not use ‘run-only user’ connections”
Screen showing a red dot next to flow checker in the flow window and then the results if you click on flow checker

Fixing the Child Flow

Return back to the child flow information page. In the bottom right of the window look for Run only users box. When you have found it, click Edit. For each connection change the Provided by run-only user to the connection listed. You get a dialog stating the run-only users only get access to the connections for this flow. Click OK.

pictures showing the steps from run only users to connections used

When you have updated all the connections remember to click save.

You can now return to the parent flow. You might need to re-add the action but you will no longer get an error.

Conclusion

Child flows are a great way to re-use logic and break a process down into manageable parts.

Over 20 year experience at being passionate about training, solving problems and loving a new challenge especially in the Microsoft's Power Platform suite.