Power Apps can now be edited simultaneously using the power of Git version control. This feature is still experimental and although it has been around for some time it is still not fully functional.
‘This app is locked for editing’ message can now be bypassed and multiple developers can work on the same time. In order to do this the Power platform online compiler collaborates with GIT.
In the Power App settings, go to Upcoming features and under the Experimental tab turn on Show the Git version control setting.
Once the feature has been switched on, Power Apps will prompt to connect to a Git repository as soon as you navigate to the Git version control tab.
The following form will prompt for Git connection details. If you don’t already have a repository you will need to create one outside of Power Apps and preferably through Azure Devops.
To connect to your repository you need to create a Personal Access Token in Azure Devops. This will be the password you need to connect to your repo from inside Power Apps.
Once connected to your repository, you will need to share the app and make that person a Co-Owner.
Developers can now work together on an app and save changes to the Git repo. Pressing the commit button in the Power Apps task bar will save the changes to the repository and update any changes made by the second developer. However, this functionality doesn’t always work as expected and the app may lock.
Once the app has been committed to the repo the source code for the app can be viewed and even edited in Git hub. This is very useful for conducting a code review or changing variable names across the app etc.