Lab 1.1: Create and manage tables and columns
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. Ideally, they want their users to complete an Expense Report after each event or purchase. For each Expense Report, they want them to be able to add individual expense line items. They have already started working on this solution. The Expense Report table has been created. You have been asked to take over the project and complete it.
High-level lab steps
Upon Successful completion of this lab, you will:
- Import a Solution into your environment that includes the Expense Report Table.
- Create Expense line-item table
- Add the necessary columns to the Expense line-item 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: Import the Expense Report solution into your environment
Objective: In this exercise, you will import the Expense Report solution that includes the Expense Report table.
Task #1: Import the solution
The Expense Report table will contain information about the expense report that the individual is submitting.
- If you are not already signed in, sign into
make.powerapps.com
using your environment credentials. - From the Environment menu in the top right, ensure you are in the environment that you want to import the solution to.
- Using the navigation on the left, select Solutions.
- On the command bar at the top select Import Solution.
- Select the Browse button.
- Locate and select the
ExpenseReport_1_0_0_1
solution file that was located in your course materials. - Select the Import button.
Note: it can take several minutes for the solution to be imported into your environment.
Exercise 2: Create tables and columns
Objective: In this exercise, you will import the Expense Report solution that includes the Expense Report table.
Task #1: Create Expense Line table
- If necessary, navigate to the Power Apps Maker Portal.
- Make sure that you are working in the environment that you imported the
ExpenseReport_1_0_0_1
solution into during the last exercise. - Using the navigation on the left, select Solutions.
- Locate and select the Expense Report solution.
- Select the New button.
- From the menu that appears, go to Table. Next, select Table (advanced properties).
- Configure your new table as follows:
- Display name:
Expense Line
- Plural name:
Expense Lines
- Enable attachments (Including notes and files): Selected
- Display name:
- Select the Primary Column tab and change the Display Name to Expense Title.
- Select the Save button.
Note: It might take a minute or two for the table to be created.
Task #2: Add the necessary columns to the Expense Line table
- With the Expense Line table open, select Columns under the Schema group.
- Select + New column.
- Enter
Expense Type
for Display name. - Select Choice > Choice for Data type.
- In Required, select Optional.
- Set Sync with global Choice to Yes (recommended).
- Under the Sync this choice with field, select + New Choice.
- In the Display Name field, enter
Expense Type
. - In the Label field for the first choice, enter
Meals
. - Select + New Choice.
- In the Label field, enter
Lodging
. - Repeat Steps 10 & 11 to add the following options:
Travel
Entertainment
Supplies / Equipment
Other
- Select the Save button.
- In Sync this choice with field, select the Expense Type choice you just created.
- Set the Default choice field to None.
- Select Save.
Task 3: Create Expense Amount column
- Select + New column.
- Enter
Expense Amount
for Display name. - Select Currency for Data type.
- Select Save.
Task 4: Create Item Description column
- Select + New column.
- Enter
Item Description
for Display name. - Select Multiple Lines of text > Plain Text for Data type.
- Select Save.
Task 5: Create Expense Date column
- Select + New column.
- Enter
Expense Date
for the Display Name. - Select Date Only from the Date and Time group in the Data Type Field.
- Expand Advanced options.
- Set the Time Zone adjustment field to User Local.
- Select Save.
Task 6: Create Expense Report column
- Select + New column.
- Enter
Expense Report
for the Display Name. - Select Lookup from the Lookup group in the Data Type Field.
- In the Related table field, select Expense Report.
- Select Save.
Exercise 3: Edit table
Objective: In this exercise, you will manually modify a table.
Task #1: Modify the columns displayed
- If necessary, navigate to the Power Apps Maker Portal.
- Make sure that you are working in the environment that you imported the ExpenseReport_1_0_0_1 solution into during the last exercise.
- Using the navigation on the left, select Solutions.
- Locate and select the Expense Report solution.
- Using the navigation on the left, select Tables.
- Open the Expense Line table created in the previous exercise.
- Next to the Import Sequence column, select +[X] more. (The number shown here will depend on your browser size.)
- From the menu that appears, select the following columns:
- Expense Amount (Base)
- Expense Date (If not already selected)
- Expense Report
- Expense Type
- Expense Amount
- Item Description
- Select the Save button.
- Locate the Created By column and select it.
- From the menu that appears, select Hide.
- Repeat steps 10 & 11 to remove the following columns:
- Created By
- Expense Line
- Import Sequence