Hi Power Apps Community,
I have an issue below:
When adding an existing canvas app component into a solution, I expected to see an option where I can set that component "read only" so that when a customer uses my solution, they can not edit that canvas app.
However, in Power Apps, I could not find such a setting or option to do that.
Could you please help show me where I can set a canvas app component "read only"?
Thank you in advance,
so what you are looking for is a managed solution--that's not set when you add components to a solution, it is set when you export the solution--if you choose managed solution, that controls what can be edited.
see the managed solution properties of the above link.
Note that there are currently some gaps with this--you can add flows and canvas apps to managed solutions, but there are currently some things that need to be updated after moving the apps, such as connection strings, which adds to the unmanaged layer. Expect to see these gaps addressed in the upcoming updates.
I exported the solution with Managed type.
After that, I deleted the current unmanaged solution I exported and the canvas app component in the production environment as well.
So in order to test if the managed solution I exported before can keep the canvas app read-only, I imported that managed solution into the same environment.
For my observation, there seems to be inconsistency in the way the canvas app is handled in terms of management
In the solution, the canvas app is managed. The signal is that Edit menu item is disabled.
But in the Apps list, when checking the canvas app, Edit menu item is active.
Could you please help explain why there is inconsistency there?
I also thought that it may be because I have imported the solution in the same environment. But I am not sure about that.
The inconsistencies are the gaps I mentioned in my original answer. Solutions have been around a long time but canvas apps in solutions are only about a year old.
see https://docs.microsoft.com/en-us/powerapps/maker/common-data-service/solutions-overview#managed-prop... for a list of some of the current limitations.
based on my experience the edit button will still be there as people will still need to make updates to the connections in the apps, etc, but significant changes should be prohibited as is exporting the solution out from where it is imported.
in the near future as they add the ability to specify the connection on solution import you should see the ability to edit the app in a managed solution go away.
btw this is the main reason that Microsoft partners and ISV’s are not selling a bunch of canvas app based products in app source—there is no real way to protect your canvas apps, but that is quickly changing. Step one was to make canvas apps and flows solution ready and the second step is to close the ALM gaps.
if you want to release an app that is fully managed solution ready and locked down today, you may want to consider a model driven app. Model driven apps in a solution are not editable in the target environment.
but whatever you do, back up your source code in an unmanaged solution, don’t throw away the unmanaged copy of the solution
We're excited to announce our first cross-community 'Can You Solve These?' challenge!
Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.
We are excited for the next Super User season.
FIll out a quick form to claim your community user group member badge today!
Features releasing from October 2020 through March 2021