Latest Posts

Call a Microsoft Flow from another MS Flow in SharePoint online


In this article, we will see how to call one Microsoft flow from another flow just using a few simple steps. While developing complex MS flows you may face a requirement to breakdown a flow into two or more, demanding one running flow to call another flow.  

Brief: For demonstration purposes, we will create a flow (Parent Flow) which can be triggered manually. This flow will trigger another flow (Child Flow).

Create a Child Flow

  1. First will create a child flow
  2. Go to My Flows. Click on New > Instant-from blank
  3. create instant blank ms flow
  4. In Build an instant flow window, add Flow name and Choose trigger – When an HTTP request is received
  5. MS Flow Choose trigger – When an HTTP request is received
  6. You can see the trigger added in the flow.
  7. http trigger created
  8. Click on the green bar to expand it. You can see a highlighted text in the below screenshot. URL will be generated after save. That means once you save this flow, a URL will be generated, and that URL will be used to trigger this flow.
  9. http request trigger URL will be generated after save
  10. As a next step and just to save flow, I have added a Send an email notification action. Save the flow.
  11. ms flow Send an email notification action
  12. Now if you expand the first step, you will be able to see a URL generated in the textbox, highlighted below. Just COPY this URL. This will be used in our Parent Flow.
  13. http post url genereted in trigger

Create a Parent Flow

  1. Go to My Flows. Click on New > Instant-from blank. For this tutorial, we will choose - Manually trigger a flow. You can choose the trigger according to your requirements.
  2. manually trigger a flow
  3. In the next step, add HTTP Action.
  4. add http action
  5. Now expand the HTTP action and as shown in the screenshot, select the Method as POST. Enter the URI which you had copied from earlier flow (Child Flow). Save the flow.
  6. http action trigger details

Test your MS Flow

  1. Go to My Flows. Run the Parent Flow as shown in the Screenshot.
  2. run MS Flow 1
  3. Click on Run Now displayed on Pop up window.
  4. run MS Flow 2
  5. After sometimes, you will be able to see the output of your Child Flow. You can also check the History of the flow

Conclusion:

We went through a step by step process of calling one flow from another flow. Let us know your feedback on the same.


We value your Feedback:

Page URL:

Name:

 

Email:

 
 

Suggestion:

 

© 2022 Code SharePoint