Canvas apps are the original PowerApps. While the CDS for Apps is often associated with model-driven apps, this video demonstrates creating a canvas app using the CDS.
- [Instructor] Most of the apps that are created using the Common Data Service for Apps are model-driven apps, however we're going to quickly create a Canvas app. This is the original type of app that we could create in PowerApps, using the Common Data Service, just so you know that we can do it and also because it's really pretty quick to do. In order to work along with me, you will need to be a maker in your environment and you'll need to be able to switch to an environment that has the CDS database and you need to have permissions for that database. Here we are in Microsoft PowerApps. I'm in the correct environment. You always want to make sure you check this. And if I go Home in this particular environment, we have a Canvass app from a blank, Model-driven app from blank, Start from data. So I'm going to choose Start from data. This automatically creates a three screen mobile app from your data. That sounds good. And I'm going to scroll down a little bit more. And this has a form factor for a phone. That's great, we're going to make this app. We have a number of things loading and this may take 30 seconds, 90 seconds. Here come the data sets that are available to me, starting with the Common Data Service. Dynamics 365, OneDrive for Business, and so on. I'm going to choose Phone layout, and click Create. Provides access to the environment database. That's right where we're going. There are other connections, other services that I could use, but I'm focused right over here. And this is my connection to the Common Data Service. The table I want to use is Accounts, so I'm going to choose Accounts, and then in the lower right hand corner, I'm going to click Connect. And this quickly, I have an application being created for me. Remember that I chose Start with data, and I was promised a little three screen application, and it is on its way. That's actually a pretty amazing alternative to the hourglass, here this entire little factory layout that I have animated here. Welcome to PowerApps Studio, I don't need to see this. I'm going to skip and here is my application. You are probably familiar with this. We have a BrowseScreen. We have a DetailScreen. And we have an EditScreen, which allows us to edit the details. All of this data, is coming to me courtesy of, the Common Data Service for Apps. If I'd like to preview this, I can click the Preview button. If I want to find someone specific, I could scroll, here's the sample data, Blue Yonder Airlines, number of employees, and so on. This will take me to the Edit button. I can close the Preview. And a reminder, always good to have, that we can test our app by simply holding down the Alt key to check different things out. So for example, if I want to know if the pencil works, I can hold the Alt button down, click the pencil to edit, it will take me to the EditScreen, see where I am now. And if I click the Submit, now I'm back in my detail screen again. Very easy way to create an application of our accounts very quickly. And if you've been working with PowerApps, even if you first looked at them a year and a half or two years ago, and this is your first time back, this is the kind of app that you are learning to create Canvass apps. The difference with this application, is that it's data source is the Common Data Service for Apps.
- Creating and saving an app
- Creating custom CDS entities
- Adding relationships to entities
- Adding data to entities
- Defining fields
- Creating business rules
- Editing a model-driven app
- Creating an environment
- Creating a CDS for Apps database