web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How do connection refe...
Power Automate
Suggested Answer

How do connection references work in a child flow?

(0) ShareShare
ReportReport
Posted on by 17
When creating a flow in a solution, Power Automate indicates that flows in a solution must use connection references. If they do not the current designer will not work.
 
However. Microsoft documentation states that flows used as child flows must use embedded connections. There are no clues in the documentation as to whether a connection reference does or doesn't count as an embedded connection, but if you just use a connection reference in a child flow, then when you try to save the parent flow you will get an error stating that a child flow cannot be used if it uses a run only user connection.
 
You can go to the details page for the child flow, select 'edit' Run Only Users and there for your connection you can change from "Provided by run-only user" to a specific connection.
 
In an unmanaged solution this will now work. However there are several aspects of this configuration that are puzzling.
 
Firstly. If you edit the child flow and look at the details for the action using the connection you will see that it is still configured to use the connection reference. But in the details page under Run only users it is configured to use a specific connection directly. How can both of these be correct?
 
Secondly. There doesn't seem to be any way to know which connection a connection reference actually uses. The connections are all named after the user and there doesn't appear to be any way to rename them.
 
Thirdly. If a child flow is running using a connection with embedded credentials. Isn't that going to mean that any updates to SharePoint will be recorded as having been made by that user instead of the user that actually triggered the flow. If so that completely destroys any hope of having a functioning audit trail. This is simply not correct, backend systems should not be updated using global or admin credentials.
 
Lastly. Although this works in an unmanaged solution, what is going to happen to connectors in child flows that seem to be both connection references and embedded connections at the same time when I import this solution into a new environment as a managed solution? I have very little confidence that this will work, or that I will be able to make sense out of all the possible ways it could fail.
 
Is there an explanation for all of this anywhere that makes sense of the situation? Because this all feels like a cobbled together mess to me that I really don't really comfortable building enterprise applications out of.
Categories:
I have the same question (3)
  • CU02041222-0 Profile Picture
    17 on at
    In typical Power Apps fashion it worked once before lunch. Now after lunch it doesn't work. Now in the parent flow I get the error "child flow contains run-only user connections" even though I have selected a specific connection in "run only users".
     
    How can I even disconnect the child flow from the connection reference?
     
    In the action calling the connector there is only the option to select another connection reference.
    It won't let me delete the connection reference because it's referenced by the child flow.
    If I delete and recreate the GetItem action that uses the connection it just automatically reconnects to the connection reference.
     
    I certainly don't want to have to delete the child flow and start over.
     
    CoPilot hasn't got a clue. First it gives me a solution for a flow using an embedded connection when my child flow uses connection references. Then it tells me to ensure the child flow uses the same connection references as the parent, which doesn't work and the MS documentation even says this won't work. Then it tells me to put it back the way it was configured to start with which obviously also doesn't work.
     
    It seems like everything I do in Power Apps boils down to trying the same thing over and over again until it works. Grrr!! But for some reason every client these days seems to think that Power Apps is the solution to their business problem.
     
     
  • Suggested answer
    CU21080438-0 Profile Picture
    2 on at
    Is there any way out of this, i am stuck in a deep nest right now!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard