When you are using Power Automate for some time, you will reach at point where you want to reuse a flow. Especially coming from programming background, the reuse of flow comes naturally to your mind. It is like a function or method call.
Nevertheless it is not that intuitive to reuse flows in Power Automate. This guide shows you click by click how to create a parent flow with a Power Automate child flow.
Parent and child flow setup
In case you just want to know what you have to care about, here it is:
- You need a solution: Parent and child flow need to be in the same solution
- Parent flow: Use ‘Run a Child Flow‘ to trigger the child flow
- Child flow: Use ‘Respond to a PowerApp or flow‘ to pass data to the parent flow
Step by step: How to use Power Automate child flows
Understand everything it takes to reuse a flow. This very simple example shows you the necessary steps without adding unnecessary complexity.
You will learn how to:
- Create a solution
- Pass data from the parent flow to the child flow
- Pass data from the child flow to the parent flow
This guide shows you exactly how to create a solution, a child flow and a parent flow. The parent flow passes a number to the child flow. The child flow duplicates this number by 2 and passes the result to the parent flow.
-
Create a new solution
![How To Use Child Flows In Power Automate [Step By Step] 3 Power Automate Create A New solution](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Create-A-New-solution.png)
Click ‘New Solution’
-
Give your solution a name and select a publisher
![How To Use Child Flows In Power Automate [Step By Step] 4 Power Automate New Solution Dialog](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-New-Solution-Dialog.png)
Create your solution
-
Click on your solution
![How To Use Child Flows In Power Automate [Step By Step] 5 Power Auotmate Select The Solution](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Auotmate-Select-The-Solution.png)
Select your solution
-
Add a flow to your solution
![How To Use Child Flows In Power Automate [Step By Step] 6 Power Automate Create Flow In solution](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Create-Flow-In-solution.png)
New Instant Flow
-
Create the child flow
![How To Use Child Flows In Power Automate [Step By Step] 7 Power Automate Create Child Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Create-Child-Flow.png)
Create flow
-
Add an input
![How To Use Child Flows In Power Automate [Step By Step] 8 Power Automate Add Input](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Add-Input.png)
Click on ‘Add an input’
-
Select type number for your input
![How To Use Child Flows In Power Automate [Step By Step] 9 Power Automate Add Input Number](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Add-Input-Number.png)
Click on Number
-
Add a new step
![How To Use Child Flows In Power Automate [Step By Step] 10 Power Automate Add Next Step](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Add-Next-Step.png)
Click on ‘New step’
-
Add ‘Respond to a PowerApp or flow’ operation
![How To Use Child Flows In Power Automate [Step By Step] 11 Power Automate Respond to a flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Respond-to-a-flow.png)
Respond to a PowerApp or flow
-
Add an output
![How To Use Child Flows In Power Automate [Step By Step] 12 Power Automate respond to Add Input](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-respond-to-Add-Input.png)
Add an output
-
Select type Number
![How To Use Child Flows In Power Automate [Step By Step] 13 Power Automate Respond to Output Number](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Respond-to-Output-Number.png)
Click on Number
-
Enter expression: mul(triggerBody()[‘number’],2)
![How To Use Child Flows In Power Automate [Step By Step] 14 Power Automate Add Function](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Autpmate-Add-Function.png)
Set expression for output
-
Save flow
![How To Use Child Flows In Power Automate [Step By Step] 15 Power Automate Save Child Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Save-Child-Flow.png)
Click save
-
Go back
![How To Use Child Flows In Power Automate [Step By Step] 16 Power Automate Child Flow Go Back](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Child-Flow-Go-Back.png)
Go back
-
Add another flow
![How To Use Child Flows In Power Automate [Step By Step] 17 Power Automate Create Another Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Create-Another-Flow.png)
Create flow
-
Add an input
![How To Use Child Flows In Power Automate [Step By Step] 8 Power Automate Add Input](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Add-Input.png)
Add an imput
-
Select type Number
![How To Use Child Flows In Power Automate [Step By Step] 9 Power Automate Add Input Number](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Add-Input-Number.png)
Click on Number
-
Select operation ‘Run a child flow’
![How To Use Child Flows In Power Automate [Step By Step] 20 Power Automate Run a Child Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Run-a-Child-Flow.png)
Run a Child Flow
-
Select your child flow
![How To Use Child Flows In Power Automate [Step By Step] 21 Power Automate Select Child Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Select-Child-Flow.png)
Child flow selection in Run a Child Flow
-
Pass the number of your trigger to the child flow
![How To Use Child Flows In Power Automate [Step By Step] 22 Power Automate Set Number](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Set-Number.png)
Set input of Run a Child flow
-
Save flow
![How To Use Child Flows In Power Automate [Step By Step] 23 Power Automate Save Parent Flow](https://zeitgeistcode.com/wp-content/uploads/2022/03/Power-Automate-Save-Parent-Flow.png)
Click ‘Save’
![How To Use Child Flows In Power Automate [Step By Step] 2 power automate child flows](https://zeitgeistcode.com/wp-content/uploads/2022/03/power-automate-child-flows-1.png)