Working with Power Automate Child Flows: Add a Child Flow To a Parent Flow

Power AutomateThis article is part of the Working with Power Automate Child Flows series and of the larger Working with Power Automate series I am writing on my experiences working with the Power Automate, which is part of the Power Platform from Microsoft. I also have a related series of articles on Power Automate with Microsoft Dynamics 365 BC.

With the child flow created and the run-only users setting changed, we can add the child flow to parent flows. In this article, I am going to create an example flow which prompts the user for a message which is passed into the child flow and then receives back and emails an output message from the child flow.

The parent calling a child flow, can be any type of flow, but for this example, I am creating an instant cloud flow. Do this by opening your solution and clicking New » Automation » Cloud flow » Instant:

Solution page with the new flow menu open

Enter a name for the flow (I have used a naming convention of Flow Type | Flow Name | Flow Version) and Choose how to trigger a flow by selecting Manually trigger a flow; click K to continue:

Build an instant cloud flow dialog

To prompt the user for a message, add a text input param to the first action:

Manually trigger a flow action with a text variable

Click the add operation button and search for and select the Run a child flow action:

Choose an operation dialog showing the Run a Child Flow action

Select the Child Flow which should be called (make sure the selected child flow is part of the solution in which you are working or due to a limitation in Power Automate, there could be unreliable results); the dialog will include any expected input variables of the selected child flow, which I have added the variable chich is prompted to the user when the parent flow is started:

Run a Child Flow action action with variable set

I’ve then added a Send an email (V2) action which has a hardcoded email and subject and the email body set to the child flow output variable:

Send an email V2 action

The parent flow is now ready to run and we should, assuming all works well, rceive one email from the child flow with the message inout from the user and a second email set by the child flow confirming that a message has been sent.

Working with Power Automate

Working with Power Automate
What is Power Automate?
What Type of Flow Are Available?
What Type of Cloud Flows Are Available?
Power Automate with Business Central
Working with Power Automate Solutions: What Are Solutions?
Working with Power Automate Solutions: What Types of Solution Are There?
Working with Power Automate Solutions: What is a Solution Publisher?
Working with Power Automate Solutions: Create a Solution Publisher
Working with Power Automate Solutions: Create a Solution
Working with Power Automate Solutions: Publish a Solution
Working with Power Automate Solutions: Version Numbering for Solutions
Working with Power Automate Solutions: Exporting An Unmanaged Solution
Working with Power Automate Solutions: Importing An Unmanaged Solution
Working with Power Automate Solutions: Exporting A Managed Solution
Working with Power Automate Solutions: Importing A Managed Solution
Working with Power Automate Solutions: Change the Managed Properties of a Solution Component
Create a Visio Diagram of a Flow
What Are Environment Variables and Why Should They be Used?
Create an Environment Variable
Create a New Cloud Flow From a Template
Managing Large Flows
What is a Scope?
Example of How to Use a Scope
Best Practice For Using Scopes
Working with Power Automate Child Flows: What are Child Flows?
Working with Power Automate Child Flows: Create a Child Flow
Working with Power Automate Child Flows: Change Run Only Users For Child Flow
Working with Power Automate Child Flows: Add a Child Flow To a Parent Flow
Working with Power Automate Child Flows: Test the Parent/Child Flow Examples
Working with Power Automate Child Flows: Error Encountered Saving a Flow Which Calls a Child Flow
Working with Power Automate Child Flows: Error Encountered With Surprise Extra Parameters for a Child Flow
Calculate 30 Days Ago

What should we write about next?

If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.

Your Name

Your Email

Suggested Topic

Suggestion Details

Leave a Reply

Your email address will not be published. Required fields are marked *