While working with Power Automate, you might have a requirement to call a ms flow from another flow. In this tutorial, let us explore, how to call a flow from another flow in power automate?
So, here we will see one Microsoft flow or Power Automate flow call another Microsoft Flow with an example.
How to call a flow from another flow in Power Automate
Here we will see how to call a flow from another flow in Power Automate.
When we have a complex flow, and we want the flow to break down into one, two, or more as per requirement.
So let’s see an example where we will create a flow that will send a successfully submitted email to the employee when an employee submits for the expense reimbursement in SharePoint Online List.
So, for this, we will create a two flow,
- Parent Flow: In this flow can have any type of trigger, and can call child flow.
- Child Flow: This flow contains the small tasks we want to run on parent flow.
Steps for how to call MS flow from another flow
Here we will see the steps on how to call MS flow from another flow.
Step 1 Create a SharePoint Online List
I have already created a SharePoint list called Expense Reimbursement, which had 4 columns with column types.
Column | Column Type |
---|---|
Title | Single line of text |
Amount | Number |
Date | Date and Time |
Category | Choice |
Apart from this column, you can add an in-built column that is hidden these are Attachments, and Created By.
Once your flow is ready we will create a child Flow First then we will create a parent flow in Power Automate.
Step 2: Create a child flow
To create a child flow, Log in to Power Automate. Then click on Solutions, click on New solution. Then Provide a Display Name, select a publisher from the drop-down and click on Create.
Then open that solution, and click on New -> Automation -> Cloud Flow -> Instant.
Next, provide the Flow name, and select the trigger ‘When an HTTP request is received, then click on Create.
Step 3: When an HTTP request is received
In this step provide the below JSON schema or else generate your sample JSON schema. Next click on Show advanced options and choose Method type as POST.
{
"type": "object",
"properties": {
"Title": {
"type": "string"
},
"Amount": {
"type": "number"
},
"Date": {
"type": "string"
},
"Category": {
"type": "string"
},
"Created By": {
"type": "string"
},
"Attachment": {
"type": "string"
},
"Created By Email": {
"type": "string"
}
}
}
Step 4: Send an Email
To send an email, click on the Next step and select Send an Email(V2) action. Then provide To, subject, and body field from the dynamic contentment which we get from the previous step.
Step 5: HTTP response
In this step, we will use response action, which is an incoming API call, and it used the result of an action to trigger this flow.
So, click on the Next step and select the Response action, then provide the status code as 200, and in the body write some message.
Now the child flow is ready to go, let’s create a parent flow and call the child flow.
Also, read, Power Automate export SharePoint list to excel and send an email
Step 6: Create a Parent flow
Inside the solutions, which we have created before, click on the New -> Automation -> Cloud -> Automated flow.
Now provide the flow name, and select the trigger When an item is created, and then click on Create.
Step 7: When an item is created
In this step provide the site address and list name of the SharePoint list.
Step 8: Run a child Flow
Now we will call the child flow inside the Parent flow, so click on the Next step and then select Run a child flow action. Then provide the child flow you have created, and provide the input to the child flow field.
Now our parent and child flow is ready, so now we can test the flow.
Step 9: Run the flow
Now to run the flow manually, click on Save and create an item in the list to trigger the flow.
Now in the below screenshot, you can see both the flows ran successfully.
Child Flow
Parent Flow
Once the flow ran successfully, you will get an email in the outlook.
This is how to call a flow from another flow in power automate.
You may also like the following Power Automate tutorials:
- Power Automate remove characters from a string
- Power Automate Array Variable
- Power Automate send email based on form response
- Power automate split string into an array with examples
- Power Automate Rename File
- Power Automate String Functions
- Power Automate send email from shared mailbox
In this Power Automate tutorial, we learned about how to call a flow from another flow in Power automate.
Bhawana Rathore is a Microsoft MVP (3 times in Office Apps & Services) and a passionate SharePoint Consultant, having around 10 years of IT experience in the industry, as well as in .Net technologies. She likes to share her technical expertise in EnjoySharePoint.com and SPGuides.com
Thank you so much for this solution, I didn’t know before. This eases my complete work. Keep on! 🙂
very nice