Practice Lab 3 - Create a model-driven app

Estimated time: 30 minutes

Lab objectives

In this lab, you will learn to:

  • Understand the difference between canvas apps and model-driven apps
  • Create a model-driven app using the modern app designer
  • Add a Dataverse table to the app’s site map
  • Customize the main form and view for the table
  • Publish and test the model-driven app

Scenario

While employees submit requests using a mobile canvas app, the Contoso facilities management team needs a full-featured desktop application to manage, triage, and track all requests. Model-driven apps are ideal for this because the interface is automatically generated from the data model, providing a consistent and professional experience.

Exercise 1: Create the model-driven app

Task 1: Create a model-driven app

  1. Navigate to https://make.powerapps.com and sign in.
  2. Select + Create from the left navigation, then select Blank Page with navigation.
  3. Name the app Contoso Facilities Management and click Create.
  4. The modern App Designer will open.

Task 2: Add the Facility Request table

  1. In the App Designer, Click + New page (or + Add page) and select Dataverse table.
  2. Search for and select both the Facility Request and Rooms tables (if you completed Lab 1) additionally choose the Account and Contact tables.
  3. Make sure Show in navigation is selected and select Add. The tables will now appear in your app’s navigation.

    Screenshot of Navigation

  4. Under Navigation, select New Group.
  5. On the right side of the screen, expand the New Group pane.
  6. Change the title from New Group to Customers.
  7. Select the three dots next to the Customers group and choose New group.
  8. Change the Name of the New Group to Facilities.
  9. Under Navigation select the Facility Requests view, select Move Down until it is in the Facilities Group.
  10. Select the Rooms view and Move it down below Facility Requests.
  11. You completed App should resemble the image below:

    Screenshot of updated navigation

Task 3: Publish and test

  1. Click Save and then Publish in the upper right.
  2. Click Play to open the app in a new browser tab.
  3. Verify the following:
    • The navigation menu shows your Facility Request table.
    • Clicking the table name shows the list view with the columns you configured.
    • Clicking on a record opens the form with the layout you customized.
    • You can create a new record by clicking + New. **