PowerApps Development Strategies – Part 1

Let’s cover the tools available when creating and managing PowerApps. We’ll begin with design tools and transition to what Microsoft provides.

powerapps development

Part one of a series.

PowerApps Development Tools

If you’re reading this, either you’re interested in PowerApps, or one of your business users has created a PowerApp that is now critical to the company and thrown at you to manage. Either way, it’s time to get comfortable with managing these apps!

PowerApps Design Studio (Web and App Versions)

So, I was originally going to compare and contrast the differences in using the app version or the web version of the PowerApps Design Studio, and then Microsoft went ahead and deprecated the app version. Probably because it was a memory hog, and they realized that web performance provided a better experience, especially for very complex PowerApps.

I’m not going to dive into how to design a PowerApp with Design Studio, but it’s important to understand that all development and management of PowerApps should be performed through the web version from now on.

PowerApps Environments

In PowerApps, you have the ability to segregate your PowerApps, connections and data policies into different environments. The environments are containers that wall off environments from each other. For example, if you have a development environment and a production environment, you can create PowerApps and connections with the same names.

But the PowerApps and connections have no knowledge of ones in the other environment. This makes it easy to develop in one environment, and then promote to another environment without having to make too many changes.

With data policies, you can create environments to apply distinct policies to. You can also allow users to use business data depending on the environment they have access to.

Versioning

Every time you save a PowerApp, it creates a new version of that PowerApp. I know because I make mistakes like this all the time. With versioning, it’s easy to roll back to a previous version with a button click.

This also can come in handy when the underlying PowerApps platform is upgraded. For example, lets say you make a bunch of changes to your PowerApp on Friday. On Saturday, Microsoft upgrades the PowerApps platform. When you edit the PowerApp on Monday, PowerApps automatically upgrades your app to the latest version, which you save and publish.

Users then begin to complain of an issue that was introduced by that PowerApps platform upgrade. With versioning, you can also roll your PowerApp back to the last good version, on the specific version of PowerApps you know was working.

powerapps development

Import/Export

The ability to import and export PowerApps is an invaluable tool for managing across different environments (and tenants). Export will package up and save your PowerApp (and connections and Flows) into a zip file, which you can then use to create a new PowerApp in a different environment (or update one that is already there).

Manually Editing PowerApps Files (not supported)

Believe it or not, if you’re in a pinch, you CAN actually edit the files PowerApps gives you when a PowerApp is exported.

As far as I know this is NOT supported by Microsoft, and it is a bit tricky to do. But, if you’re adventurous, here’s how you can do it:

  1. Export your PowerApp. This will save it as a zip file to your local machine.
  2. Extract the files to a folder. This will extract a manifest.json file and a Microsoft.PowerApps directory.
  3. In the Microsoft.PowerApps directory, there will be sub folders, where you will eventually find various files. The one you want to focus on is the .msapps file.  powerapps development
  4. Download 7-Zip. This will allow you to edit a file without removing it from the zip file. This is important, as I haven’t found a way to repackage .msapp files.
  5. Change the file extension on your .msapp file to .zip.
  6. Open 7-Zip and then open the newly renamed .zip file.
  7. Most of the rules, controls, and more that make up your PowerApp are defined in the Entities.josn file. Right-click that file, and click edit. This will open the file up in Notepad. You can copy and paste it into an editor of your choice, but you need to make sure you copy back any changes you make into the same Notepad file you opened.
  8. Save the Notepad file. When you return to 7-zip, it will ask you if you want to update the file in the archive, click OK.
  9. Rename the .zip file back to a .msapp file.
  10. Re-zip the whole package (manifest.json and Microsoft.Powerapps directory).
  11. Import back into PowerApps.

Conclusion

Congratulations! You just edited a PowerApps JSON file, which you shouldn’t really do – unless you need to make bulk wholesale changes throughout a PowerApp. (For example, I wanted to change how a variable was defined, and it was much easier and faster to do a find and replace in Notepad rather than changing it in the designer.)

The next installment will cover the type of planning and guidance that can help make your PowerApps journey successful.

Originally published on Jo’s blog “Office – 365 Days a Year”

Go Further

About the Author

Jo Karnes is a National SharePoint Architect for our Enterprise Collaboration Practice. With more than 15 years’ experience working with Microsoft technologies, Jo not only brings a wealth of knowledge in Microsoft SharePoint, but also in enabling technologies that allow SharePoint to integrate and perform well. 

 

Contact the Author to Learn More

  • This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published. Required fields are marked *