Create and update solutions
To locate and work with just the components you’ve customized, create a solution and do all your customization there. Then, always remember to work in the context of the custom solution as you add, edit, and create components. This makes it easy to export your solution for import to another environment or as a backup. More information Create a solution
Update a solution
Make changes to your unmanaged solution, such as adding or removing components. Then, when you import a managed solution that was previously imported, the import logic detects the solution as an update and displays the following screen of options.
More information: Apply an update or upgrade for a solution
Create solution patches
You can create a patch for a parent solution and export it as a minor update to the base solution. When you clone a solution, the system rolls up all related patches into the base solution and creates a new version.
Using clone a patch and clone solution to update a solution isn't recommended because it limits team development and increases complexity when storing your solution in a source control system. For information about how to update a solution, see Update a solution.
Creating updates using clone solution and clone to patch
When you’re working with patches and cloned solutions, keep the following information in mind:
A patch represents an incremental minor update to the parent solution. A patch can add or update components and assets in the parent solution when installed on the target system, but it can’t delete any components or assets from the parent solution.
A patch can have only one parent solution, but a parent solution can have one or more patches.
A patch is created from an unmanaged solution. You can’t create a patch from a managed solution.
When you import a patch into a target system, you should export it as a managed patch. Don’t use unmanaged patches in production environments.
The parent solution must be present in the target system to install a patch.
You can delete or update a patch.
If you delete a parent solution, all child patches are also deleted. The system gives you a warning message that you can’t undo the delete operation. The deletion is performed in a single transaction. If one of the patches or the parent solution fails to delete, the entire transaction is rolled back.
After you have created the first patch for a parent solution, the solution becomes locked, and you can’t make any changes in this solution or export it. However, if you delete all of its child patches, the parent solution becomes unlocked.
When you clone a base solution, all child patches are rolled up into the base solution and it becomes a new version. You can add, edit, or delete components and assets in the cloned solution.
A cloned solution represents a replacement of the base solution when it’s installed on the target system as a managed solution. Typically, you use a cloned solution to ship a major update to the preceding solution.
When you clone a solution, the version number you specify includes the major and minor positions.
When you clone a patch, the version number you specify includes the build and revision positions.
For more information about version numbers, see Clone solution and clone patch version numbers in this article.
Create a solution patch
A patch contains changes to the parent solution, such as adding or editing components and assets. You don’t have to include the parent’s components unless you plan to edit them.
Create a patch for an unmanaged solution
Go to the Power Apps portal, and then select Solutions.
In the solutions list, select an unmanaged solution to create a patch for. On the command bar, select Clone, and then select Clone a Patch. The right pane that opens contains the base solution’s name and the patch version number. Select Save.
In the solutions list, find and open the newly created patch. Notice that the unique name of the solution has been appended with Patchhexnumber. Just like with the base solution, add the components and assets you want.
Create a patch using solution explorer
The following illustrations provide an example of creating a patch for an existing solution. Start by selecting Clone a Patch (in the compressed view, the Clone a Patch icon is depicted as two small squares, as shown below).
In the Clone To Patch dialog box you see that the version number for the patch is based on the parent solution version number, but the build number is incremented by one. Each subsequent patch has a higher build or revision number than the preceding patch.
The following screenshot shows the base solution SegmentedSolutionExample, version 184.108.40.206, and the patch SegmentedSolutionExample_Patch, version 220.127.116.11.
In the patch, we added a new custom entity called
Book, and included all assets of the
Book entity in the patch.
Clone a solution
When you clone an unmanaged solution, the original solution and all patches related to the solution are rolled up into a newly created version of the original solution. After cloning, the new solution version contains the original entities plus any components or entities that are added in a patch.
Cloning a solution merges the original solution and associated patches into a new base solution and removes the original solution and patches.
Go to the Power Apps portal, and then select Solutions.
In the solutions list, select an unmanaged solution to create a clone. On the command bar, select Clone, and then select Clone Solution. The right pane displays the base solution’s name and the new version number. Select Save.
Clone solution and clone patch version numbers
A patch must have a higher build or revision number than the parent solution. It can’t have a higher major or minor version. For example, for a base solution with version 18.104.22.168, a patch could be a version 22.214.171.124 or version 126.96.36.199, but not version 188.8.131.52. A cloned solution must have the version number greater than or equal to the version number of the base solution. For example, for a base solution version 184.108.40.206, a cloned solution could be a version 220.127.116.11, or version 18.104.22.168. When you clone a solution or patch, you set the major and minor version values for a cloned solution, and the build or revision values for a patch.
Submit and view feedback for