Skip to main content

Notifications

Power Automate - Using Connectors
Unanswered

Changing custom connector name

(1) ShareShare
ReportReport
Posted on by 166

I made a custom connector for QuickBooks Online so we can integrate it with Dynamics 365. 

I started making the QBO connector using their built in "Sandbox" environment so I could isolate my testing from the production environment.  Thus, it is called "QuickBooks Online - Sandbox".

I've since come to find out that if I make a custom connector called "QuickBooks Online - Production" and want to switch my Flows to using it, I basically have to rebuild the Flows where it uses the connector.

  • You can't swap and existing Action for another
  • If you do, it deletes all of the Dynamic content and Expressions in it
  • Copy to my clipboard (Preview) doesn't work 99% of the time
  • Or you can copy the Flow (oh wait, no you can't if it is in a solution) and have the burden of maintaining two sets of identical Flows and redoing all of your work

Really, really, really poor design decision on the part of Microsoft.

At any rate, I decided the simplest solution is to just use the same connector and when we want to use it for production, change the URL information in the various actions in the custom connectors to point at the production environment... (and cross my fingers this doesn't delete all the information in Flows).

All that being said, it is kind of confusing because I am apparently stuck with the name "QuickBooks Online - Sandbox" and just want to change it to "QuickBooks Online".

  1. Is there a way to change the name?
  2. If I change the request body in custom connector, is it going to erase all of the information in my Flows where it uses those corresponding actions?
  • russoedu Profile Picture
    russoedu 50 on at
    Re: Changing custom connector name

    Some things are really frustrating on Power Platform, I totally feel your pain.

    For the specific case of creating custom connectors (CC) on Sandbox and then migrating them, there are some workaround you can do:

    1. Don't name it "sandbox" or "dev"... you are actually going to migrate it to the production environment if you follow these steps
    2. Create a new Solution where you are going to create and migrate the CC
    3. Create ENV VARs for everything that is different from Sandbox and Production
      1. In my case, I have one for the URL and another one for the function code
        russoedu_0-1677571760549.png
      2. Set the default and current values to the PRODUCTION values - this way, when you import it on production, you'll not need to update them
    4. Create the custom connector using the ENV VARs
      1. instead of typing the URL, for instance, you use @environmentVariables("replaceByTheEnvVarId")
        russoedu_1-1677572265900.png
    5. DO NOT CREATE A CONNECTION REFERENCE IN THE SOLUTION!!! *
    6. Export the solution as managed
    7. Import the solution on production

    You can now update the env vars for development, edit and test your CC. After you finish testing, you can export the solution and import it again and it should work.

     

    Now, working on your normal solution, you can include the CC and Connection Reference, export and import. The CC will be linked correctly to the one you exported before and you'll not have trouble redoing everything.

     

    *If you try to import a CC for the first time with a Connection Reference, it will fail, you always need to import JUST the CC and when it's already in the new environment, you can import a solution with a Connection Reference

  • abm abm Profile Picture
    abm abm 32,265 on at
    Re: Changing custom connector name

    Hi @ishraqiyun77 

     

    I found the hard way recently and I can see your frustrations.  You can't add the custom connector as part of your solution and deploy it. Believe one of the reason could be is the endpoint can be different for each environments of your custom API. 

     

    Following are the steps I used to deploy my custom connector.

     

    1. Created my customer connector under my dev environment. 

     

    2. Once the build is finished and tested then  click the download

    image.png

     

    3. Change your environment from dev to test or production. Click custom connector > New custom connector > Import an OpenAPi file.

    image.png

     

    4. This does import the settings from your Dev environment. Review each settings, update the client id & secret key if using OAuth 2.0 

     

    Not the best way but it saves quite a lot of time to enter all the details again.

     

    Thanks

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics