Power Automate: Embedded Connection error in child flows

Problem Statement

After creating a child flow and trying to save it, I was stumbled upon an error in the Flow Checker which stated “Update the child flow for action to not use run-only user connections”

Reason

The reason for this is that child workflows support only embedded connections. Also, there is no provision to retain the context of the user of the parent flow and transfer it to the child flow. In such a case, the user context is lost.

Since the connections don’t go from parent to child, we need to define the connection in the child flow itself.

Resolution

To embed the connection lets head over to the child flow page and click on the edit option of Run Only Users

Graphical user interface, text, application, email, Teams

Description automatically generated

Each connection within the flow is by default defined to use the current user’s context which would be null as it’s not passed from the parent flow. So we will click on the drop-down to select one of the connections that are predefined.

Graphical user interface, text, application, email

Description automatically generated

Click OK in the dialog box and click on Save for the changes to take effect.

A screenshot of a computer

Description automatically generated

Thus, we have used a predefined connection for the child flow to use while invoked from the parent flow.

Graphical user interface, text, application

Description automatically generated

Now if we go ahead and save the child flow, it will get saved without any issues.

Graphical user interface, text, application

Description automatically generated

Summary

Thus, we saw how to circumvent the common Embedded Connection issue while creating the child cloud flows.

Related Articles

Author

Author

Priyaranjan KS is a Modern Workplace Architect primarily focused on developing and architecting solutions around Office 365,Power Platform and Azure.He is also a Microsoft Most Valuable Professional(MVP) and a Microsoft Certified Trainer(MCT)

Latest Articles