How to call a flow from another flow in Power Automate

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,

  1. Parent Flow: In this flow can have any type of trigger, and can call child flow.
  2. 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.

ColumnColumn Type
TitleSingle line of text
AmountNumber
DateDate and Time
CategoryChoice
Can you call a flow inside another flow?

Apart from this column, you can add an in-built column that is hidden these are Attachments, and Created By.

call a flow from another flow power automate
call a flow from another flow power automate

Once your flow is ready we will create a child Flow First then we will create a parent flow in Power Automate.

See also  6 Various Ways to Sort Array 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.

Can you call a flow inside another flow?
Can you call a flow inside another flow?

Then open that solution, and click on New -> Automation -> Cloud Flow -> Instant.

can a flow call another flow
can a flow call another flow

Next, provide the Flow name, and select the trigger ‘When an HTTP request is received, then click on Create.

call a ms flow from another flow
call a ms flow from another flow

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"
        }
    }
}
call a microsoft flow from another flow
call a microsoft flow from another flow

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.

microsoft flow call another flow with parameters
Microsoft flow call another flow with parameters

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.

Can you call a flow inside another flow?
Can you call a flow inside another flow?

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

See also  Create an Array from SharePoint list Items using Power Automate

Step 6: Create a Parent flow

Inside the solutions, which we have created before, click on the New -> Automation -> Cloud -> Automated flow.

How to call a flow from another flow in power automate
How to call a flow from another flow in power automate

Now provide the flow name, and select the trigger When an item is created, and then click on Create.

call a flow from another flow power automate
call a flow from another flow power automate

Step 7: When an item is created

In this step provide the site address and list name of the SharePoint list.

Power Automate can a flow call another flow
Power Automate can a flow call another flow

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.

call a ms flow from another flow
call a ms flow from another flow

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.

How to call a flow from another flow in power automate
How to call a flow from another flow in power automate

Now in the below screenshot, you can see both the flows ran successfully.

Child Flow

microsoft flow call another flow with parameters
microsoft flow call another flow with parameters

Parent Flow

call a flow from another flow power automate
call a flow from another flow power automate

Once the flow ran successfully, you will get an email in the outlook.

how to call a flow from another flow in power automate
how to call a flow from another flow in power automate

This is how to call a flow from another flow in power automate.

You may also like the following Power Automate tutorials:

In this Power Automate tutorial, we learned about how to call a flow from another flow in Power automate.

  • >