Call Child Flow from Parent Flow in Power Automate
Call Child Flow from Parent Flow in Power Automate
Introduction
As Power Automate solutions grow in complexity, maintaining large workflows can become difficult. Repetitive logic, duplicated actions, and lengthy flows often lead to maintenance challenges and reduced scalability.
One of the most effective ways to overcome these challenges is by using Child Flows. Child Flows allow developers and administrators to modularize business logic into reusable components that can be called from multiple Parent Flows.
This guide explains how to create and call a Child Flow from a Parent Flow in Power Automate while following industry best practices.
What is a Child Flow in Power Automate?
A Child Flow is a flow that is executed by another flow rather than being triggered directly by a user or event.
Benefits
- Reusable workflow logic
- Reduced duplication
- Easier maintenance
- Improved scalability
- Better error handling
- Consistent business processes
For example, if multiple workflows need to send notifications, update records, or process approvals, these actions can be centralized in a Child Flow and reused across various automation solutions.
Prerequisites
Before creating Parent and Child Flows, ensure:
- Power Automate Solutions are enabled.
- Parent and Child Flows exist within the same Solution.
- Required permissions are granted.
- Appropriate licensing requirements are met.
- Environment configuration is completed.
Step 1: Create a Solution
Child Flows can only be used inside a Solution.
Procedure
- Open Power Automate.
- Navigate to Solutions.
- Select New Solution.
- Enter Display Name, Publisher, and Version.
- Click Create.
Once the Solution is created, open it to begin building flows.
Step 2: Create the Child Flow
- Inside the Solution, select New → Automation → Cloud Flow.
- Choose Instant Cloud Flow.
- Create the flow.
Configure the Trigger
Use the trigger:
When a flow is called
This trigger enables the flow to receive parameters from the Parent Flow.
Example Inputs
| Input Name | Type |
|---|---|
| EmployeeID | Text |
| EmployeeName | Text |
| Department | Text |
These inputs will be supplied by the Parent Flow.
Step 3: Add Child Flow Logic
Add the business process actions that should execute when the Child Flow is called.
- Creating records
- Updating SharePoint items
- Sending notifications
- Processing approvals
- Logging information
Example Email Message
Employee: EmployeeName
Department: Department
Request Processed Successfully
Save the Child Flow after configuring all actions.
Step 4: Return Data to Parent Flow
Add the action:
Respond to a PowerApp or flow
Define output parameters.
Example Outputs
| Output Name | Type |
|---|---|
| Status | Text |
| Message | Text |
Example Response
Status = Success
Message = Employee processed successfully
Step 5: Create the Parent Flow
Within the same Solution:
- Create a new Cloud Flow.
- Select an appropriate trigger:
- Manual Trigger
- Scheduled Trigger
- SharePoint Trigger
- Dataverse Trigger
- Email Trigger
This flow will initiate the Child Flow.
Step 6: Call the Child Flow
- Select New Step.
- Search for Run a Child Flow.
- Select the Child Flow.
- Provide input values.
Example
EmployeeID = EMP001
EmployeeName = John Smith
Department = Finance
Power Automate automatically maps these values to the Child Flow parameters.
Step 7: Use Child Flow Outputs
After execution, outputs returned from the Child Flow can be used within the Parent Flow.
Example Outputs
- Status
- Message
Example Logic
If Status = Success
Continue Processing
Else
Send Error Notification
Error Handling Best Practices
Use Scope-Based Error Handling
Create:
- Try Scope
- Catch Scope
- Finally Scope
This approach improves reliability and troubleshooting.
Return Detailed Error Messages
Avoid:
Failed
Use:
Employee record not found
Log Failures
Store errors in:
- SharePoint Lists
- Dataverse Tables
- SQL Databases
- Application Insights
Real-World Use Cases
Employee Onboarding
Parent Flow: Receives onboarding requests.
Child Flow:
- Creates accounts
- Assigns licenses
- Sends welcome emails
Invoice Processing
Parent Flow: Receives invoice submissions.
Child Flow:
- Validates invoices
- Updates systems
- Sends approval requests
Customer Support
Parent Flow: Receives support tickets.
Child Flow:
- Creates service cases
- Assigns agents
- Sends acknowledgments
Best Practices
- Keep Child Flows focused on a single business process.
- Use descriptive naming conventions.
- Avoid excessive nesting.
- Document inputs and outputs.
- Promote reusability across solutions.
Common Issues and Solutions
Run a Child Flow Not Visible
Cause: Flow is not located inside a Solution.
Resolution: Move both flows into the same Solution.
Child Flow Not Appearing
Cause: Incorrect trigger configuration.
Resolution: Use the When a flow is called trigger.
Input Mapping Errors
Cause: Incorrect parameter definitions.
Resolution: Review input types and required fields.
Conclusion
Child Flows are a powerful feature in Power Automate that help organizations build scalable, reusable, and maintainable automation solutions. By separating business logic into reusable components, teams can reduce duplication, improve governance, and simplify long-term maintenance.
Following the best practices outlined in this guide will help you design enterprise-grade automation workflows that are easier to manage and extend as business requirements evolve.