cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
emoii
Level: Powered On

PowerApps in production and in test [release management]

Hi all

 

We sucesfully launched our first app in production, and as it was the first, we also created and tested it in our production environment. The App is connected to 4 SPO lists in our production tenant.

 

Now, we know that we will further develope on this app, and we want it done in our test tenant. What is the best approach to achieve this.

 

What I tried was to replicate/migrate the 4 SPO lists to test. This went fine.

 

Then I did a export of the app, did a Import in test, this also went fine. But there are stil references to the lists in the other tenant. 

 

What I am asking is, what is the best approach to move a app to another envirnonment or a test tenant environment, further develope on it, test it, and then release/delpoy it to production again, and update the current app in production.

 

Is the best approach to stay in same environment, have multiple copies of the app one for Dev, one for Test, etc., and have multiple copies of the lists in production tenant also?

 

I am missing some guidelines in how the release management is best done with PowerApps.

1 ACCEPTED SOLUTION

Accepted Solutions
Mike2500
Level 8

Re: PowerApps in production and in test [release management]

PowerApps was designed as an end user tool, and as such does not have rich support for typical develop wish list items like (good) version control, support for easily publishing among different environments, or support for easily changing out connection strings or credentials.

 

So, if you export and import an app, it will still have connections set to the original environment. To correct this, view the data connections, and delete them. Then, recreate them, pointing to the new sources, but ensure the names are the same. When you delete the source, all the controls on all forms will show red errors messages, as expected. Once the data sources are recreated with the same names, then all the errors should go away. Of course, the fields, data types, etc., all need to match between the environments.

 

Given the above, to update an app:

 

  1. make changes to the dev version
  2. export
  3. import to prod
  4. delete data sources
  5. recreate data sources
  6. test*
  7. publish

Note, the test phase isn't going to be a true test, as the preview experience in the designer has a few differences from how the the published version of the app will behave. So, in this sense, the can't actually be fully tested prior to being put into prod. Second, it goes without saying that making changes to the app in the prod environment as described above is a violation of very basic best practices for  managing apps. But that's the situation we're in.

2 REPLIES 2
Mike2500
Level 8

Re: PowerApps in production and in test [release management]

PowerApps was designed as an end user tool, and as such does not have rich support for typical develop wish list items like (good) version control, support for easily publishing among different environments, or support for easily changing out connection strings or credentials.

 

So, if you export and import an app, it will still have connections set to the original environment. To correct this, view the data connections, and delete them. Then, recreate them, pointing to the new sources, but ensure the names are the same. When you delete the source, all the controls on all forms will show red errors messages, as expected. Once the data sources are recreated with the same names, then all the errors should go away. Of course, the fields, data types, etc., all need to match between the environments.

 

Given the above, to update an app:

 

  1. make changes to the dev version
  2. export
  3. import to prod
  4. delete data sources
  5. recreate data sources
  6. test*
  7. publish

Note, the test phase isn't going to be a true test, as the preview experience in the designer has a few differences from how the the published version of the app will behave. So, in this sense, the can't actually be fully tested prior to being put into prod. Second, it goes without saying that making changes to the app in the prod environment as described above is a violation of very basic best practices for  managing apps. But that's the situation we're in.

Highlighted
emoii
Level: Powered On

Re: PowerApps in production and in test [release management]

Thanks.

 

That is not optimal, hope they will implement an easier way to do it. 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Top Kudoed Authors
Users Online
Currently online: 213 members 5,681 guests
Please welcome our newest community members: