Quickly find the parent from the child flow in Power Automate

Pieter VeenstraMicrosoft 3652 years ago28 Views

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

Blog Syndicated with Pieter Veenstra’s Permission

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...