Skip to main content

HSD’s Senior Technical Consultant (Dynamics 365), Ashley Fonseca is back with a new blog post that outlines how to trigger an asynchronous child flow in Power Automate.

When you call a child flow in Power Automate, the parent flow waits for the result of the child flow. Which means the parent flow’s step that calls the child flow waits till a response is received. If you have a long running child flow that it might be better to call it as an asynchronous process. This is particularly useful when in your parent flow you want to start a child flow but don’t need result back.

In this post we will have a look at how to trigger a child flow to run in an asynchronous way.

Building the chid flow

  1. Create a child flow with either one of this three triggers
    • Manually trigger a flow
    • Power Apps.
    • When an HTTP request is received

In my example I have selected “Manually trigger a flow”.

Select New – ‘Instant – from blank’

2. Select trigger as ‘Manually trigger a flow’ and click Create

3. When you select the first trigger you can define inputs that you want the child flow to receive from the parent flow.

Select Text and give it a name.

4. Optional step: you can choose to write additional steps before response or skip this step. In this example I am writing a delay step.

Click New Step – select Delay action.

5. Return to parent flow: you can choose one of two actions:

  • Respond to a Power App or flow
  • Response

Click New step – PowerApps – Respond to a Power App or flow.

6. Click on Add an output: This is response content to parent flow. You can choose as many responds output as you want.

This step will respond to parent flow and then parent flow will continue to progress without waiting for child flow to finish.

7. Now child flow has return the response which means it can run in an asynchronous way. Add as many steps as you like.

In this example I will add delay step to demonstrate that child flow will return the response and will continue in asynchronous way.

Click New Step – select Delay action.

If you run this flow, you will see that this flow will respond and then will continue to run in asynchronous mode.

Make sure you check out more of HSD’s blog posts by visiting https://www.hsd.com.au/blog/

References

https://docs.microsoft.com/en-us/power-automate/create-child-flows