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 / How to change connecti...
Power Apps
Unanswered

How to change connection when importing app to different tenant/org?

(0) ShareShare
ReportReport
Posted on by 15
How do I change the Connection when importing an app?
 
My setup:
SQL server on-premise with gateway.
Successfully created a working powerapp in my org/tenant.
The app has flows which uses the SQL connector (ex call stored procedure)
and a few screens like a gallery connected to a datasource (same SQL server / gateway)
Now I want to export the app and import into another org/tenant. (let's call it "Customer A")
"Customer A" has exact same setup (SQL server, gateway).
Name of gateway and name of database is different, but exact same schema.
 
I haved tried 3 different things:
1) Export and import canvas app (not solution).
Then I can manually set connection at import, and import works OK.
BUT: The connection only works for the FLOWS; not the SQL server datasources
The old servername is stored in name of dataset for SQL server,which is not same at new environment.
I have to manually re-create SQL server datasources.

2) I haved tried managed solution.
Then I cannot change or add any connection at all.
When I run the app, it prompts for allow "SQL by Microsoft" which points to nothing.
3) I have tried unmanaged solution
Pretty much same as 2) - when I edit the app, the text under then flows states "not connected".
 
So - Obviously I am missing something basic here.. but I am stuck!
 
My goal:
Develop then app in my environment (my tenant).
Then distribute to my customers (1 customer = 1 tenant, they distribute within their org themselves)
All customers have the same setup (SQL server with identical schema, on premise)
 
My understanding is that either the customer must import themself, or grant me a "guest account" where I can do the updates for them. But I cannot get this to work… 😞
 
Help greatly appreciated!
 
 
/Sigurd
 

 

 

Categories:
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @Sigurd_Aas 

     

    I have been working on a project that has similar requirements.

     

    After a month of digging around, I realized that it is just not possible right now to create an app with connections (in your case sql connections) and sell it customer without letting them edit. Managed solution does not work because of the permission screen. And export package lets the customer edit. 

     

    You can vote for my idea here that suggests this feature:

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Importing-Managed-Solutions-with-Connections/idi-p/566205

  • Sigurd_Aas Profile Picture
    15 on at

    Thanks for your reply.

    This seems to be may experience so far also.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 221 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard