|
| 1 | +--- |
| 2 | +title: Create a canvas app in a solution | Microsoft Docs |
| 3 | +description: In PowerApps, create a canvas app in a solution so that you can deploy the app to another environment |
| 4 | +author: AFTOwen |
| 5 | +manager: kvivek |
| 6 | +ms.service: powerapps |
| 7 | +ms.topic: article |
| 8 | +ms.custom: canvas |
| 9 | +ms.reviewer: |
| 10 | +ms.date: 10/23/2018 |
| 11 | +ms.author: anneta |
| 12 | +search.audienceType: |
| 13 | + - maker |
| 14 | +search.app: |
| 15 | + - PowerApps |
| 16 | +--- |
| 17 | +# Create a canvas app from within a solution |
| 18 | + |
| 19 | +Create an app from within a solution if you want to deploy the app, for example, to a different environment. Solutions can contain not only apps but also customized entities, option sets, and other components. You can quickly customize an environment in a variety of ways by creating apps and other components from within a solution, exporting the solution, and then importing it into another environment. |
| 20 | + |
| 21 | +Solutions are built on the same platform as Dynamics 365 for Customer Engagement. For more information, see [Solutions overview](../common-data-service/solutions-overview.md). |
| 22 | + |
| 23 | +## Prerequisite |
| 24 | + |
| 25 | +To follow the steps in this topic, you must switch to an environment that contains a Common Data Services for Apps database. |
| 26 | + |
| 27 | +## Create a solution |
| 28 | + |
| 29 | +You can skip this procedure if you already have a solution in which you want to create an app or to which you want to link an app. |
| 30 | + |
| 31 | +1. [Sign in](https://web.powerapps.com?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) to PowerApps, and then (if necessary) switch to the appropriate environment: |
| 32 | + |
| 33 | + - If you want to create an app from within a solution, switch to any environment that contains a CDS for Apps database. |
| 34 | + - If you want to link an existing app to a solution, switch to the environment that contains that app. |
| 35 | + |
| 36 | +1. In the left navigation bar, select **Solutions**. |
| 37 | + |
| 38 | +  |
| 39 | + |
| 40 | +1. In the banner under the title bar, select **New solution**. |
| 41 | + |
| 42 | +  |
| 43 | + |
| 44 | +1. In the window that appears, specify a display name, a publisher, and a version for your solution. |
| 45 | + |
| 46 | +  |
| 47 | + |
| 48 | + A name (with no spaces) will be automatically generated based on the display name that you specify, but you can customize the generated name if you want. You can specify the default publisher for your environment and **1.0** for the version if you don't have specific needs in those areas. |
| 49 | + |
| 50 | +1. Near the upper-left corner, select **Save and close**. |
| 51 | + |
| 52 | +  |
| 53 | + |
| 54 | +## Create a canvas app in a solution |
| 55 | + |
| 56 | +You can create a blank canvas app from within a solution. You can't automatically generate a three-screen app or customize a template or sample app from within a solution. |
| 57 | + |
| 58 | +1. [Sign in](https://web.powerapps.com?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) to PowerApps. |
| 59 | + |
| 60 | +1. If necessary, switch to the environment that contains the solution in which you want to create a canvas app. |
| 61 | + |
| 62 | +1. In the left navigation bar, select **Solutions**. |
| 63 | + |
| 64 | +  |
| 65 | + |
| 66 | +1. In the list of solutions, select the solution in which you want to create a canvas app. |
| 67 | + |
| 68 | +1. In the banner under the title bar, select **New** > **App** > **Canvas app**, and then select the form factor (phone or tablet) of the app that you want to create. |
| 69 | + |
| 70 | +  |
| 71 | + |
| 72 | + PowerApps Studio opens with a blank canvas in another browser tab. |
| 73 | + |
| 74 | +1. Create your app (or make at least one change), and then save your changes. |
| 75 | + |
| 76 | +1. On the browser tab where you selected your solution, select **Done** to refresh the list of components in your solution. |
| 77 | + |
| 78 | +  |
| 79 | + |
| 80 | + Your new app appears in the list of components for that solution. If you save any changes to your app, they will be reflected in the version that's in the solution. |
| 81 | + |
| 82 | +## Link an existing canvas app to a solution |
| 83 | + |
| 84 | +If you want to link an app to a solution, they must be in the same environment, and the app must have been created from within a solution. |
| 85 | + |
| 86 | +1. [Sign in](https://web.powerapps.com?utm_source=padocs&utm_medium=linkinadoc&utm_campaign=referralsfromdoc) to PowerApps. |
| 87 | + |
| 88 | +1. If necessary, switch to the environment that contains the solution to which you want to link an app. |
| 89 | + |
| 90 | +1. In the left navigation bar, select **Solutions**. |
| 91 | + |
| 92 | +  |
| 93 | + |
| 94 | +1. In the list of solutions, select the solution to which you want to link an app. |
| 95 | + |
| 96 | +1. In the banner under the title bar, select **Add existing** > **App** > **Canvas app**. |
| 97 | + |
| 98 | +  |
| 99 | + |
| 100 | + A list of canvas apps that were created within a solution in this environment appears. |
| 101 | + |
| 102 | +1. In the list of apps, select the app that you want to link to the solution, and then select **Add**. |
| 103 | + |
| 104 | +  |
| 105 | + |
| 106 | +## Known limitations |
| 107 | + |
| 108 | +Please refer to this [section](../common-data-service/use-solution-explorer.md#known-limitations) for a complete list of known limitations for canvas app in solution. |
| 109 | + |
| 110 | +## Next steps |
| 111 | + |
| 112 | +- Create or link more apps and [other components](../common-data-service/use-solution-explorer.md), such as entities, flows, and dashboards, to your solution. |
| 113 | +- [Export your solution](../common-data-service/import-update-export-solutions.md) so that you can deploy it to another environment, on AppSource, and so forth. |
0 commit comments