Warning: Undefined array key "Play" in /homepages/7/d756825262/htdocs/clickandbuilds/365Community/wp-content/themes/Nexus/epanel/custom_functions.php on line 1812

Warning: Trying to access array offset on value of type null in /homepages/7/d756825262/htdocs/clickandbuilds/365Community/wp-content/themes/Nexus/epanel/custom_functions.php on line 1812

Warning: Undefined array key "Play" in /homepages/7/d756825262/htdocs/clickandbuilds/365Community/wp-content/themes/Nexus/epanel/custom_functions.php on line 1826

Warning: Trying to access array offset on value of type null in /homepages/7/d756825262/htdocs/clickandbuilds/365Community/wp-content/themes/Nexus/epanel/custom_functions.php on line 1826
Quickly find the parent from the child flow in Power Automate - 365 Community

Quickly find the parent from the child flow in Power Automate

When you have used child flows and attempted to debug issues you will have come across the issue where you want to find the parent flow for the failing child flow.

Parent – Child flows

In this example I’ve created a simple set of flows. There is one parent flow and there is a child flow.

The parent flow calls my child flow using the Run a child flow action.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Simple Parent flow

Then the Child flow has a manual trigger and does something before it responds back to the parent flow.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Simple Child Flow run

Flow runs

There are many flow runs of my parent flow after a while.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Parent flow runs

And I will also have quite a few runs for my child flow. At some point it will become very difficult to connect the two related flow runs together.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Child Flow runs

Making the Parent Flow run Url available

The first step now is to add an additional parameter to my child flow’s trigger step. I’m calling this parameter Parent Url. But you can call this something else if you prefer.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate PArent URL in the child trigger

Then I update my parent flow to supply the Parent Flow url using a concat expression.

Parent flow calling the child flow with its url

Do you remember the expression from the Try Catch pattern to generate the Flow run URL? Well this is just the same.

concat('https://make.powerautomate.com/environments/', workflow()?['tags']['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])

Configuring the Flow Run View

Using the Edit Columns option I can now make the Parent URL available within my flow run overview.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Adding Parent Url to the Child Flow run view

This will make it possible to copy the url ( Sorry, it is not a clickable URL here!)

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate PArent Urls visible in view

And within the flow run itself you can also find the Parent Url. This is especially useful if we received an email form your Try Catch pattern with the flow url.

Quickly find the parent from the child flow in Power Automate Microsoft Power Automate Parent URL available to the child flow

And then of course you could also include this Parent Url in that email alerting you about a failure. Then you could click on a link in the email to show you the parent failing to call the child correctly.

Hopefully this pattern will make it a bit easier to look after your child and parent flows.

Continue Reading Pieter Veenstra’s Article on their blog

Quickly find the parent from the child flow in Power Automate

When you have used child flows and attempted to debug issues you will have come across the issue where you want to find the parent flow for the failing child flow. In this example I’ve created a simple set of flows. There is one parent flow and there is a child flow.

Blog Syndicated with Pieter Veenstra’s Permission

Author: Pieter Veenstra

Share This Post On