Skip to main content

How to Change an Action's Connection Reference in Power Automate

· 5 min read
Jagdish Kumawat
Founder @ Dewiride

Each action in a solution flow connects through a connection reference, and the designer picks one for you when you add the action. To switch it, open the action, select Change connection reference at the bottom of its pane, and choose the reference you want.

A connection reference is a solution component that says which connection a flow uses, so the flow can move to another environment and be connected there. Microsoft's connection reference article explains why you sometimes need to switch: When an action is added to a solution flow, Power Automate will try to reuse existing connection references from the current solution or other solutions before creating a new connection reference.

The example is Get Waiting Approvals, a flow in the Overtime Timesheet solution of the Overtime Timesheet app. Its first SharePoint action connected to a reference from another solution in the same environment.

Prerequisites​

Step 1: See Which Reference the Action Uses​

Select the action. The bottom of its Parameters tab says Connected to and the reference's name, followed by a Change connection reference link. For Get the caller, an Office 365 Users action, it was Office 365 Users, from the flow's own solution.

Step 2: Open the Change Connection Dialog​

Select Change connection reference. The Change connection dialog lists every reference for the action's connector: its status, display name and the account it connects as. The current one is selected. For the Office 365 Users action, there was only one:

The Change connection dialog for Get my profile (V2), saying Select an existing connection reference or create a new one, with one reference, Office 365 Users, admin@example.com, selected and outlined in red, and Add new and Cancel buttons

Step 3: Pick the Reference from Your Solution​

For the SharePoint action Get items, the dialog showed two references. The designer had chosen Another Solution SharePoint, which belongs to another solution. I selected Overtime Timesheet SharePoint, the flow's own:

The Change connection dialog for Get items with two references, Another Solution SharePoint selected, and Overtime Timesheet SharePoint outlined in red, both for admin@example.com

Selecting a reference applies it. The pane then said Connected to the new reference. Add new creates a new reference instead.

Step 4: Repeat for Every Action of That Connector​

Each action keeps its own reference. In the example, the second SharePoint action, Get the pending entries, also started on the other solution's reference and needed the same change. Save the flow when every action is on the right reference.

Common Mistakes​

MistakeWhat happensDo this instead
Leaving an action on another solution's referenceThe flow depends on a reference its solution doesn't carrySwitch it to the solution's own
Changing only the first actionThe others keep the old referenceCheck each action of that connector
Picking by the account name aloneSeveral references can use the same accountPick by the reference's display name

Troubleshooting​

SymptomLikely causeFix
The reference you want isn't listedIt doesn't exist yet, or is for another connectorCreate it in the solution
Each new action connects to the other reference againThe designer reuses it every timeSwitch each action as you add it
The flow fails in another environmentAn action used a reference that didn't moveCheck every action's reference before exporting

FAQ​

Why did the designer pick the other solution's reference?​

Microsoft documents it: the designer reuses existing references, from this solution or others, before it creates a new one. Here, the other solution's SharePoint reference already existed.

Does changing the reference change whose account the action uses?​

Only if the new reference uses a different connection. Here, both used the same account, so only the reference changed.

Conclusion​

Change connection reference, at the bottom of an action's pane, switches the action to another reference. Use it on each action the designer connected to another solution's reference, so the flow uses only references from its own solution.

Additional Resources​