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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Changing a Connection ...
Power Automate
Answered

Changing a Connection Reference in a Managed Solution?

(1) ShareShare
ReportReport
Posted on by 835 Super User 2024 Season 1

Hello,

 

We have two SQL Connections in our environment:

SQL-1

SQL-2

 

A Connection Reference in a managed solution was set up during import to reference 'SQL-1'.

Can we now edit/change/reimport this Connection Reference in our solution to point to 'SQL-2' instead?

 

Thanks in advance

Categories:
I have the same question (0)
  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @metsshan 

     

    Are you referring to the following:

    DamoBird365_0-1616999771810.png

     

    In which case, select add new connection  for the first SQL action and then subsequently update all of the other Actions in the Flow.

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • DamoBird365 Profile Picture
    8,942 Microsoft Employee on at

    Hi @metsshan 

     

    How are you getting on?

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
    Cheers,
    Damien


    P.S. take a look at my new blog here

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Hey,

     

    Thanks for checking in!

     

    I forgot about this for a while because we have a bit of a workaround - but we still have the wrong connection assigned to a Connection Reference in a Production Managed Solution.

     

    Because the connection reference is used by both Flows and PowerApps, I would like to change it here:

    metsshan_0-1619659187436.png

    Obviously in an unmanaged solution I can Edit this connection reference. However, as a Managed solution we were able to assign the Connection to the Connection Reference during our first import, but do not know any mechanisms to change this ongoing.

     

    FWIW I believe this should an available feature, especially as organisation may mature to towards more modern authentication types, segregation of duties etc - in which cases the need for new Connections may be required (not just editing existing ones linked to Connection References).

     

    Thanks for helping!

  • kierian Profile Picture
    Microsoft Employee on at

    In managed solution all components are in read only you cant edit or add new connection.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Hey Kierian,

     

    Thanks for that - so in my case, what are the options for getting the Connection Reference changed from SQL 1 to SQL 2?

     

    It seems the only way would be to delete the Solution, re-import, and choose SQL 2 for the Connection Reference value. But then I would lose all the permissions to my PowerApp, right? Possibly worse - the App ID/URL could change?

  • kierian Profile Picture
    Microsoft Employee on at

    You have to change connection on un managed solution  once you did all change export it as managed solution that only way 

    Have a good day.

  • rb Profile Picture
    835 Super User 2024 Season 1 on at

    Sorry, but how would this work?

     

    If I change the connection in the source environment, how does Power Platform know which Connection to use for the Connection Reference in the target environment after export? The connections will have different names/IDs/values....

  • Verified answer
    rb Profile Picture
    835 Super User 2024 Season 1 on at

    In case anyone ever finds this, here is how you can change the Connection property of a Connection Reference in a Managed Solution:

     

    Go to Solutions -> find "Default Solution" -> Find your connection reference and edit it's properties from here.

     

    I hope this helps someone!

  • Hppyclown Profile Picture
    23 on at

    Legend!

  • RPraschma Profile Picture
    9 on at

    Nice.

    Now finally a proper way to do this.

    Thank you, thank you, thank you.

     

    Didn't know about it.

    The workaround I found was changing the connection ID in the connection reference table in dataverse using a cloud flow.

    Super backend without knowing the full impact, but after turning the affected flows off and on again it actually worked 🙂

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 251 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 239

#3
Expiscornovus Profile Picture

Expiscornovus 220 Most Valuable Professional

Last 30 days Overall leaderboard