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 Apps / Are there guidelines o...
Power Apps
Unanswered

Are there guidelines or PowerShell scripts to replace dev custom connector strings with prod strings in my unpacked .msapp file?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have to manually export/import our Canvas app from the dev environment to the prod environment. I have to change the calls to point from our dev Custom Connector to our production Custom Connector before importing to prod. When I unpack the .msapp file and do a cntrl+f in the project for where our dev custom connector is referenced, I'm seeing 56 results in 12 files:

 

aec2018_1-1664901249474.png

 

There are obvious places where I can do a simple replace with the name of the custom connector. Are there places I might overlook and not replace? Do I need to recreate this CMTAPI.xml file for our prod Custom Connector? (CMTAPI is our dev Custom Connector). Are there any known scripts that will do all of this for me? Thanks.

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,833 Super User 2026 Season 2 on at

    Hi @aec2018 ,

     

    Maybe a slightly different angle to the issue, but environment variables may be the way to go here:

     

    https://learn.microsoft.com/en-us/connectors/custom-connectors/environment-variables

  • aec2018 Profile Picture
    Microsoft Employee on at

    @BCBuizer, thanks for the info. I was introduced to environment variables recently but there are a few reasons why I don't think they'll work for our situation. We're not creating our custom connector in a solution because from my understanding, solution custom connectors can only give permissions to individual users and not Azure Active Directory Security Groups, which is a requirement for us. Also, I thought from what I read, environment variables only work with Sharepoint data sources? Our custom connector points to our custom API. I'll look more into it, though, and see if I overlooked how these could work for us. Thank you.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#2
11manish Profile Picture

11manish 205 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 128 Super User 2026 Season 2

Last 30 days Overall leaderboard