Add canvas apps and cloud flows to a solution by default

You can create a canvas app in a solution in Power Apps or create a cloud flow in a solution in Power Automate. Creating a canvas app or a cloud flow in a solution previously required manual steps. Now you can create them in a solution by default.

Because canvas apps and cloud flows in a solution are defined in Microsoft Dataverse, you can use Dataverse capabilities to manage them, including connection references, environment variables, the Dataverse API, role-based security, and solution-based application lifecycle management (ALM).

Important

  • The canvas apps setting is a preview feature.
  • Preview features aren't meant for production use and might have restricted functionality. These features are subject to supplemental terms of use, and are available before an official release so that customers can get early access and provide feedback.

Prerequisites

  • Solutions are stored in Dataverse, so the environment must have a Dataverse database to use this feature. If yours doesn't, add a Dataverse database.
  • To create canvas apps in solutions, you must have write privileges to the CanvasApp table. To create cloud flows in solutions, you should have the Environment Maker role. Learn more in Security roles and privileges.
  • A canvas app or cloud flow in a solution must be shared with you before you can view or edit it.

Important

Before you enable the creation of canvas apps and cloud flows in solutions by default, review the Considerations section in this article.

Supported creation methods and entry points

Several methods and entry points are available for creating canvas apps and cloud flows.

Canvas apps creation methods and entry points

The following table summarizes the methods that allow you to create canvas apps in a solution by default.

Method Available for canvas apps in a solution by default?
Create a canvas app from Dataverse Yes
Create a canvas app from other data sources, such as SharePoint, Excel, Azure Blob Storage, and others Yes
Create a blank canvas app
NOTE: Power Apps > Apps > New app > Canvas also creates a blank canvas app.
Yes
Create a canvas app from a template No
Create a canvas app by customizing SharePoint forms No

Cloud flows creation methods and entry points

The following table summarizes the methods that allow you to create cloud flows in a solution by default.

Method Available for cloud flows in a solution by default?
Create a cloud flow from blank in a portal Yes
Create a cloud flow from a template in a portal Yes
Create a cloud flow from Power Automate Management connector Yes
Create a cloud flow from PowerShell Yes
Create a cloud flow from Power Apps Yes
Create a cloud flow from Teams Yes
Create a cloud flow from OneDrive Yes
Create a cloud flow from Dynamics 365 Yes
Create a cloud flow from the Excel add-in Yes
Create a cloud flow from the Power Automate mobile app Yes
Create a cloud flow from SharePoint Yes
Create a cloud flow from Project Roadmap Yes

Important

Unsupported entry points will fail to create any cloud flow until that support is added to create a solution cloud flow with that entry point. You must first create a cloud flow in a solution using a supported method.

Enable the feature

This feature is disabled by default. You must enable it before you can use it.

  1. Sign in to the Power Platform admin center and select an environment.
  2. Go to Settings > Product > Features.
  3. Under Create new canvas apps and cloud flows in Dataverse solutions, turn on Canvas apps (Preview`) or Cloud flows as desired.

Learn more about managing feature settings in Manage feature settings.

View canvas apps and cloud flows in solutions

To view canvas app and cloud flow objects in a solution, use the solution view. You must have access to the object added inside a solution to view it in a solution view.

Export and import using solutions

Once the feature is enabled, use solutions export and import instead of exporting and importing legacy packages of canvas apps and flows. Legacy packages can be imported in environments with the environment setting turned off.

Considerations

Take the following considerations into account before you decide to create canvas apps and cloud flows in a solution by default.

  • Your Dataverse environment capacity consumption and related cost might increase.
  • Known solution limitations related to canvas apps still apply to canvas apps created in solutions by default.
  • This feature automatically creates environment variables when you add data sources for your apps.
  • By default, this feature saves all canvas apps to the default solution, Common Data Services Default Solution, published by Microsoft Dataverse Default Publisher. However, we recommend that you save your canvas apps to a different solution. Learn more about adding existing canvas apps to solutions.
  • When you turn the feature on or off for canvas apps and cloud flows in the Power Platform admin center, the Dataverse properties enablecanvasappsinsolutionsbydefault and enableFlowsInSolutionByDefault in the organization table are updated. You can view the value of these properties using the following sample ODATA snippet: [org URI]/api/data/v9.0/organizations. Learn more in Organization table reference.
  • If you're planning to change the prefix for the default publisher or solution for your environment, you can learn more in Solution publisher prefix, Create solution publisher prefix and Change solution publisher prefix.
  • Non-solution canvas apps and non-solution cloud flows can be added into a solution to add them into Dataverse, but there's no way to revert back.

Improvements

The following scenarios were improved to support cloud flows and canvas apps defined in Dataverse:

  • The Monitor > Cloud flow activity page now supports solution cloud flows.
  • The List My Flows API doesn't return any solution cloud flows.
  • Audit log events for cloud flow permissions that provide visibility into sharing now include solution cloud flows.
  • The List Flows as Admin API now returns solution cloud flows that weren't previously turned on (published). This API now returns all non-solution and solution cloud flows.
  • Flows with delegated authentication to Roadmap can be added into a solution and migrated to Dataverse.
  • Flows with delegated authentication to SharePoint can be added into a solution and migrated to Dataverse.

Is this feature generally available or preview?

As of October 29, 2024, the cloud flows setting is generally available. The canvas apps setting remains in preview.

The cloud flows setting continues to be off by default and optional.

Does putting flows into Dataverse use Dataverse capacity?

Moderately. Flow definitions use a small amount of Dataverse storage. A large flow definition could reach 10 KB. With this worst case scenario: 10,000 flows x 10 KB = 100 MB or 0.1 GB. The small increase in Dataverse storage used provides significant benefits, since solution cloud flows are needed to leverage capabilities including application lifecycle management (ALM), governance with Dataverse, automation center, drafts and versioning, and expanded security capabilities.