cancel
Showing results for 
Search instead for 
Did you mean: 

Change datasource to reuse app (export/import)

Export/import and change data source as long as the source has the same setup.
 
Edit the data source and keep the app as it is. Reuse the app in a sense. As an example you have a SP product. It is installed on a customer online tenant.
Then you create an PowerApp for the SharePoint "list/setup/product".
New customer, same SP product installed. Then export/import the app. Change data source and publish to the new customer’s employees.

Status: Planned
Comments
caburk
Power Apps

We're currently designing this feature, which will allow parameter configuration and the ability to specify, for example, which SharePoint lists your app connects across your different environments.

 

Note the CDS connection already auto-updates to the new environment on import to the target environment. The Dynamics 365 connector does not. 

Ximo
Frequent Visitor

Hi!

Still on design phase? Is there any release date? Since this thread was started in 2016? What is current status?

This feature would be much appreciated!

Thanks!

vammers
Frequent Visitor

For the flows, we were able to unpack the solution and run powershell scripts to change the SharePoint site urls and update the list and view guids and repack the solution so that they would work in the target environments. 

 

The same process doesn't seem to work in case of power app. Changing the site url and list guids in the unpacked xml file seems to have no affect. Any suggesting on how we can change the data sources would be really appreciated. 

PowerFred
Frequent Visitor

Hi

 

A very needed feature to be able to follow basic development best practices (e.g. different SPO list in DEV QA & PROD)

 

I really hope it will be delivered soon

vammers
Frequent Visitor

This is how I had done it. 

You can see the code here - https://github.com/vamshikgovind/PowerPlatformDevOps.git 

Note: only use this as reference, the scripts have been changed to make them publicly available. I am writing a blog about how to use the scripts, but it will take a bit longer.

First run the devtoolsinstaller to ensure all the sdks, ps modules needed are installed. Then look at the environment variable generator script to find out how I am generating mappings that are related to the solution.

Export and unpack is used to extract the code so that it can be pushed into git.

Postdeployment script is used to set ownership of power apps that are imported as managed solutions.

UpdateEnvironmentSettings is used to replace the list ids and pack them back into solution. This script is executed from with in the devops pipeline.