In this section of the course, we'll create an app based on entities in the Common Data Service. Entities are chunks of shared data that can be modified, stored, retrieved, and interacted with. We'll generate the app from an entity, show you how to customize the app, add another data source, and call a flow from the app. If you already completed the section on creating an app from a SharePoint list, we will cover some of the same territory but in more depth, especially around customizing the app.
We'll create a case-management app that an IT department could use to track, prioritize, and act on hardware and software issues across an organization. As you go through the topics, you might also think of other uses for an app like this. We're using data from the Common Data Service because it's well-suited to storing app data, but you could build the same app with a different data source.
PowerApps includes a more complex Case Management template that uses the same entities as the app we'll build. After you've completed this section, we encourage you to explore that template to get a sense of what you can build in PowerApps.
The first step in building this app is to create a Common Service database if you don't already have one. You create a Common Data Service database in an environment. An environment is a container for apps and other resources (you'll learn more about environments later in the course). An environment admin can follow these steps to create a database (if you're not an admin, check with an admin in your organization).
From the Home tab, click Create Database.
Specify whether you want to restrict access to the database (we'll keep it open), then click Create my database.
When the process is complete, you see all the standard entities that are included in the common data model. Some of them are shown below.
Now that the database is created, we connect to the Case entity and generate an app. Click New app, then PowerApps Studio for web.
We're building a phone app for a Common Data Service entity, so under Common Data Service click or tap Phone layout.
In the next screen, you choose a connection and an entity to connect to, then click Connect.
After you click Connect, PowerApps starts to generate the app. PowerApps makes all sorts of inferences about your data so that it generates a useful app as a starting point.
Your new three-screen app opens in PowerApps Studio. All apps generated from data have the same set of screens:
In the left navigation bar, click or tap an icon in the upper-right corner to switch to the thumbnail view.
Click or tap each thumbnail to view the controls on that screen.
Next we'll explore the app in more detail and then customize it to better suit our needs.