Call a flow from another flow in Power Automate

Loading

Requirement: Call a child flow from Parent flow using MS flow Solutions.

Create a flow that will send a successfully submitted email to the employee when an employee submits for the expense reimbursement in SharePoint list.

Create a two flows,

  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.

Create a SharePoint list ” Parent Child “.

  • Title : Single line of text column
  • Amount : Number column
  • Date and Time : Date and Time column
  • Category : Choice column(Transportation, Fees)
  • Add Attachments and Created By columns from hide columns

Create a Flow. So click on Solutions, click on New solution. Then Provide a Display Name, select a publisher from the drop-down and click on Create.

Now Create a child flow for the child flow, Click on New dropdown, select Automation then Cloud flow then select Instant flow.

After selecting Instant flow Provide name to the flow and select the Trigger as When an HTTP request is received. Then click on Create button.

Next add Request Body JSON schema and Method as Post

{
    "type": "object",
    "properties": {
        "Title": {
            "type": "string"
        },
        "Amount": {
            "type": "number"
        },
        "Date and Time": {
            "type": "string"
        },
        "Category": {
            "type": "string"
        },
        "Created By": {
            "type": "string"
        },
        "Attachment": {
            "type": "string"
        },
        "Created By Email": {
            "type": "string"
        }
    }
}

Add an Send an email(V2) action.To send an email after parent flow run successfully. Get the Response action to the child flow.

Save the Child flow and come back to create a Parent flow

Click on New dropdown, Select the Automation, then select the cloud flow and click on Automated flow for creating Parent child flow. Provide name to the flow and select the Trigger as When an item is created and click on Create button.

Provide Site address and list name to the trigger for Parent flow. Add a Run a Child flow action to the flow. Provide items from dynamic contents as shown in below.

Now Save and Run the flow

Parent flow Output
Child flow output

After flow run successfully, here the Sent email as shown in below:

Leave a Reply

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