Practice Lab 1 - Import solution

Scenario

A regional building department, Contoso, issues and tracks permits for new buildings and updates for remodeling of existing buildings. Throughout these labs you will create business logic, write code, and perform automation to enable the regional building department to manage the permit process.

The data model and Power Apps apps have been built by a functional consultant. You are a Power Platform developer and have been assigned to the Contoso project for the next stage of the project.

You need to prepare your development environment by importing solutions and data.

The solution contains:

  • Microsoft Dataverse data model
  • Power Apps Model-driven app, named Permit Management
  • Power Apps Canvas app, named Inspector

The data model supports the following requirements:

  • R1 – Track the status of Permits issued for new buildings and existing building modifications
  • R2 – Permits are associated with a Build Site, which represents the building or land being modified
  • R3 – The Permit type indicates the type of permit and inspections, other data that might be required on a permit
  • R4 – Inspections are completed on the permit work are to be tracked for the entire process i.e., from request of inspection to the pass or fail of the inspection
  • R5 – Permits, for our lab purposes, are requested by a person and we need to track who requested each permit

Refer to the data model pdf document for the metadata description (tables, column types and relationships) Data model and metadata.

Exercise 1 - Import Permit Management solution

In this exercise, you will import the solution into your Development environment.

Task 1.1 – Import solution

  1. Navigate to https://make.powerapps.com

  2. Make sure you are in your Development environment.

  3. Select Solutions.

  4. Select Import solution.

  5. Select Browse and locate the PermitManagement_1.0.0.0.zip file and select Open.

    Note: This file is located in the C:/Labfiles/L01 folder on your machine.

    Solution to import.

  6. Select Next.

  7. Select Import.

    The solution will import in the background. This may take a few minutes.

    Solution imported.

    Alert: Wait until the solution has finished importing before continuing to the next step.

  8. When the solution has imported successfully, open the Permit Management solution.

    Screen image of grid displaying tables contained in the permit management solution.

  9. In the solution, select the Overview page.

    Overview.

  10. Select Publish all customizations.

Exercise 2 - Import data

In this exercise, you will import data the into your Development environment using the Configuration Migration Tool.

Task 2.1 - Import data with the Configuration Migration Tool

  1. Open a Command Prompt.

  2. Launch the Configuration Migration Tool using the following command:

    pac tool cmt

    Configuration Migration Tool.

  3. Select Import data.

  4. Select Continue.

  5. Select Office 365 for Deployment Type.

  6. Check Display list of available organizations.

  7. Check Show Advanced.

  8. Select Don’t know for Online Region.

  9. Enter your Microsoft 365 tenant credentials.

    Configuration Migration Tool Login page.

  10. Select Login.

    Configuration Migration Tool select environment.

  11. Select your Development environment.

  12. Select Login.

    Configuration Migration Tool select data file.

  13. Select the ellipsis (…) menu and locate and select PermitManagementdata.zip file.

    Note: This file is located in the C:/Labfiles/L01 folder on your machine.

  14. Select Open. The data file will be validated.

  15. Select Import Data. The import process will take approximately a minute.

  16. Select Exit.

  17. Select the X to close the Configuration Migration Tool.

Task 2.2 – Examine the data

  1. Navigate to the Power Apps Maker portal https://make.powerapps.com

  2. Make sure you are in your Development environment.

  3. In the Maker portal, select Apps from the left navigation.

  4. For the Permit Management model-driven app, select the ellipsis and select Play, signing in with your Microsoft 365 credentials if prompted.

  5. In the left navigation of the app, select Inspections.

  6. You should have four inspections for the Test Permit.

    Create inspection record - screenshot