Lab 1: Data Modeling

WWL Tenants - Terms of Use If you are being provided with a tenant as a part of an instructor-led training delivery, please note that the tenant is made available for the purpose of supporting the hands-on labs in the instructor-led training. Tenants should not be shared or used for purposes outside of hands-on labs. The tenant used in this course is a trial tenant and cannot be used or accessed after the class is over and is not eligible for extension. Tenants must not be converted to a paid subscription. Tenants obtained as a part of this course remain the property of Microsoft Corporation and we reserve the right to obtain access and repossess at any time.

Scenario

Bellows College is an educational organization with multiple campuses and programs. Many of Bellow Colleges instructors and administrators need to attend events, and purchase items. Historically tracking these expenses has been a challenge.

Campus administration would like to modernize their expense reporting system by providing employees with a digital way to report expenses.

Throughout this course, you will build applications and perform automation to enable the Bellows College employees to manage expenses.

In this lab you will create a data model to support the following requirements:

  • R1 – Track information for scheduled campus visits.

  • R2 – Record basic information to identify and track the visitors.

  • R3 – Schedule, record, and manage visits.

Finally, you will import sample data into Microsoft Dataverse.

High-level lab steps

To prepare your learning environments you will:

  • Refer to the data model document for the metadata description (tables and relationships). You can hold ctrl + left-click or right-click the link to open the data model document in a new window.

  • Create Expense table

  • Add some sample data.

Prerequisites

  • Completion of Module 1 Lab 0 - Validate lab environment

Things to consider before you begin

  • Naming conventions - enter names carefully.

Exercise 1: Create New Table

Objective: In this exercise, you will create a new custom table for Expenses.

Task #1: Create Expenses Table and Columns

The Expenses table will contain information about individual expenses that an employee can submit including reason, type, date, and amount.

  1. If you are not already signed in, sign into https://make.powerapps.com

  2. From the Environment menu in the top right, ensure the Dev One environment is selected.

  3. Using the navigation on the left, select Tables.

  4. Select + New table and choose Set advanced properties.

  5. For Display name, enter Expense

  6. Select Save.

  7. Under the Schema section, select Columns.

Create Expense Date column

  1. Select + New column.

  2. Enter Expense Date for Display name.

  3. Select Date only for Data type.

  4. Change Required, to Business required.

  5. Expand Advanced options.

  6. In Time zone adjustment, select Date Only.

    Note: We use Date only behavior to record date information, because date of the visit should not change when viewed from a different time zone.

  7. Select Save.

Create Expense Type Column

  1. Select + New column.

  2. Enter Expense Type for Display name.

  3. Select Choice for Data type.

  4. In Required, select Optional.

  5. Set Sync with global Choice to Yes (recommended)

  6. In Sync this choice with field, select Expense Type.

  7. Set the Default choice field to None.

  8. Select Save.

Create Expense Purpose Column

  1. Select + New column.

  2. Enter Expense Purpose for Display name.

  3. Select Choice for Data type.

  4. In Required, select Optional.

  5. Set Sync with global Choice to Yes (recommended)

  6. In Sync this choice with field, select Expense Purpose.

  7. Set the Default field to None.

  8. Select Save.

Create Item Description column

  1. Select + New column.

  2. Enter Item Description for Display name.

  3. Select Multiple Lines of text > Plain Text for Data type.

  4. Select Save.

Create Expense Amount column

  1. Select + New column.

  2. Enter Expense Amount for Display name.

  3. Select Currency for Data type.

  4. Select Save.

Exercise 2: Enter data

Objective: In this exercise, you manually enter some sample data into your new table.

Task #1: Modify the columns displayed

  1. If not already signed in, sign in to https://make.powerapps.com

  2. Select the Dev One environment at the top right if it is not already selected.

  3. Using the navigation on the left, select Tables.

  4. Open the Expense table created in the previous exercise.

  5. Next to the Name column, select +26 more.

  6. From the menu that appears, select the following columns.

    1. Expense Date

    2. Expense Purpose

    3. Expense Type

    4. Expense Amount

    5. Item Description

  7. Select the Save button.

Task #2: Add a sample record.

  1. Select the Arrow next to Edit. From the menu that appears, select Edit in new tab.

  2. In the Name column, enter John Doe.

  3. In the Expense Date column, enter xxx.

  4. In the Expense Purpose, select Conference.

  5. In the Expense Type column, select Travel.

  6. In the Expense Amount column, enter 750.00.

  7. In the Item Description, enter a short description.

  8. Hit the Tab button to advance to the next row and save the record.

Congratulations, you have successfully created a new table and added data.