Empower Your Team: Collaborative Canvas Power App Development
Creating powerful Canvas Power Apps just got even better with collaborative editing capabilities. Imagine multiple Power Apps developers seamlessly working on the same app simultaneously, no more waiting for your turn to make changes or worrying about version control conflicts.
In this article, we’ll explore how you can enable multiple developers to edit Canvas Power Apps together using Git version control. Let’s dive in!
Git Version Control in Power Apps
Power Apps offers an exciting feature called Git version control, designed to enhance collaboration and streamline app development. However, it’s essential to note that this feature is still experimental and comes with some limitations, primarily regarding modern controls and components.
Getting Started
To allow multiple developers to simultaneously edit a Canvas Power App, follow these steps:
Step 1: Enable Git Version Control
- Go to the ‘Settings’ of your Canvas App.
2. Under the upcoming features section, enable ‘Git version control’.
Step 2: Connect the App to a Git Repository
- In the app’s ‘Settings’, you’ll find a new tab called ‘Git version control’. Click on it and select ‘Connect’ to configure your Git repository.
2. Create a new repository on GitHub (or your preferred Git hosting service). Make sure it’s an empty repository. We’ll call it ‘DemoGithubSync’ for this example.
3. Copy the URL of your Git repository and paste it into Power Apps.
4. Click ‘Apply’, and you’ll be prompted to sign in. Now, you need to create a personal access token on GitHub.
Step 3: Create a Personal Access Token in GitHub
- Go to ‘Settings’ on GitHub, then navigate to ‘Developer Settings’.
2. Select ‘Tokens (classic)’ and click on ‘Generate new token (classic)’.
3. Provide a name, set an expiration date, and check the ‘repo’ scope.
4. Click ‘Generate token’, copy the token, and save it in a secure location.
Step 4: Back in Power Apps: Sign Into the Repository
- Sign in using your developer’s email and the GitHub personal access token you just created.
- Once signed in, click ‘Yes’ to create a new branch.
Now, share the app with your fellow developer(s) and grant them “Co-owner” access.
Collaborative Editing
They should follow these steps to join the collaborative editing process:
- When the other developer logs in, they will see the shared app in their Power Apps account.
- After clicking on the app, they will need to sign in with their credentials and personal access token created previously whenever they open the app.
- The sync button will appear when they edit the app, just before the play button. This button allows them to commit their changes.
- Once changes are made and the sync button is pressed, those changes will be reflected in the admin account as well.
For Example:
- After signing in, the other developer made the header different and pressed on sync.
- Back in the admin account, when you press the sync button the changes are updated:
Limitations
- This feature isn’t compatible with code components. Don’t use this feature with apps that make use of code components.
- The collaborative feature is experimental in Power Apps.
- More limitations are listed in the reference.
Conclusion
With Git version control in Canvas Power Apps, your team can seamlessly collaborate on app development projects. No more version conflicts or waiting for your turn to edit.
Please note that this feature is experimental and has some limitations as mentioned above — so be sure to review the official documentation for more details.
References