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.
Then the Child flow has a manual trigger and does something before it responds back to the parent flow.
There are many flow runs of my parent flow after a while.
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.
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.
Then I update my parent flow to supply the Parent Flow url using a concat expression.
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.
This will make it possible to copy the url ( Sorry, it is not a clickable URL here!)
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.
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
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
More About This Author
- ModernWorkplace2023.01.04Manage Users using the Graph API in Power Automate
- ModernWorkplace2023.01.03Microsoft Graph API and the Power Platform
- ModernWorkplace2022.12.22A form with a multi-select dropdown with additional information collected for each selected option in Power Apps
- ModernWorkplace2022.12.09Quickly find the parent from the child flow in Power Automate