Practice Lab 1.5 – Columns

Scenario

You are a Power Platform functional consultant and have been assigned to the Fabrikam project for the next stage of the project.

In this practice lab, you will be modifying the properties of existing table columns and creating a new custom columns.

Exercise 1 – Modify and add columns on the Project table

In this exercise, you will be changing properties on existing columns on the Project table in the Fabrikam Environmental solution, creating new columns, and adding an alternate key.

Task 1.1 – Modify properties on existing columns

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

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project table.

  7. Under Schema, select Columns.

  8. Select the Project Description column.

  9. In the Edit column pane that appears on the right-hand side of the screen, expand Advanced options and scroll down.

  10. Change the Maximum character count to 10000

  11. Select Save.

  12. Select the Project Status column.

  13. In the Edit column pane that appears on the right-hand side of the screen, change the Required drop-down to Business required.

  14. Expand Advanced options.

  15. Under Dashboard, check the Appears in dashboard’s global filter box.

  16. Select Save.

  17. Select the Project Type column.

  18. In the Edit column pane that appears on the right-hand side of the screen, expand Advanced options.

  19. Check the Appears in dashboard’s global filter box.

  20. Select Save.

  21. Select the Estimated End column.

  22. In the Edit column pane that appears on the right-hand side of the screen, verify that the Format is Date only.

  23. Expand Advanced options.

  24. Verify that the Time zone adjustment is User local.

  25. Under Dashboard, check the Sortable box.

  26. Select Save.

Task 1.2 – Create an auto number column

  1. Select + New column.

  2. Enter Project Code for Display Name.

  3. Enter Unique project reference for Description.

  4. Select Autonumber in the Data type drop-down.

  5. Enter PROJ for Prefix.

  6. Select Save.

Task 1.3 – Add an alternate key

  1. In the Objects pane on the left, expand Tables, and select Project.

  2. Under Schema, select Keys.

  3. Select + New key.

  4. Enter Project Reference for Display name.

  5. Check the Project Code Column.

  6. Select Save.

Task 1.4 – Add a calculated column

  1. In the Objects pane on the left, expand Tables, and select Project.

  2. Under Schema, select Columns.

  3. Select + New column.

  4. Enter Length of Project for Display Name.

  5. Enter Number of days for Description.

  6. Select Number in the Data type drop-down. The Data type will be set to Whole Number and the Format will be set to None.

  7. Change the Behavior drop-down to Calculated.

  8. Select Save and edit.

    Add calculated column.

    Note: You may need to disable the pop-up blocker in your browser first, then open the Length of Project column and select Edit.

  9. When a new browser window opens, select + Add condition.

  10. Select Scheduled Start for Field.

  11. Select Contains data for Operator.

  12. Select the green check mark to save changes.

    Note: You may need to resize the window to see the check mark.

  13. Select + Add condition.

  14. Select Estimated End for Field.

  15. Select Contains data for Operator.

  16. Select the green check mark.

  17. Select + Add action.

  18. Enter the following formula:

    DIFFINDAYS(contoso_scheduledstartdate,contoso_estimatedenddate)

    NOTE: You can use intellisense to type and select the elements in the formula.

  19. Select the blue check mark to save changes.

  20. Select SAVE AND CLOSE.

    Calculated column.

Task 1.5 – Add a formula column

  1. In the Objects pane on the left, expand Tables, and select Project.

  2. Under Schema, select Columns.

  3. Select + New column.

  4. Enter Project Summary for Display Name.

  5. Select Formula in the Data type drop-down.

  6. Enter the following formula:

    Concatenate('Project Type'.Name,"|",Region.'Region Name')

    NOTE: You can use intellisense to type and select the elements in the formula.

  7. Select Save.

Exercise 2 – Modify and add columns on the Project Funding table

In this exercise, you will be changing properties on existing columns on the Project Funding table in the Fabrikam Environmental solution and adding a new column.

Task 2.1 – Modify value range on an existing column

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

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Funding table.

  7. Under Schema, select Columns.

  8. Select the Funding Percentage column.

  9. In the Edit column pane that appears on the right-hand side of the screen, expand Advanced options and scroll down.

  10. Change the Minimum value to 0

  11. Change the Maximum value to 100

  12. Select Save.

Task 2.2 – Create a currency column

  1. Select + New column.

  2. Enter Funding Amount for Display Name.

  3. Enter Value of funding from the funder on the project for Description.

  4. Select Currency in the Data type drop-down.

  5. Expand Advanced options and scroll down.

  6. Change the Minimum value to 0

  7. Change the Maximum value to 99999999 (Eight 9s).

  8. Select Save.

Exercise 3 – Modify a lookup column on the Milestone table

In this exercise, you will be changing properties on a lookup column on the Milestone table in the Fabrikam Environmental solution. Lookup columns when created by a relationship do not have auditing enabled by default.

Task 3.1 – Modify audit on lookup column

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

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Milestone table.

  7. Under Schema, select Columns.

  8. Select the Project column.

  9. In the Edit column pane that appears on the right-hand side of the screen, change the Required drop-down to Business required.

  10. Expand Advanced options and scroll down.

  11. Check the Enable auditing box.

  12. Select Save.

Exercise 4 – Add a choice column

In this exercise, you will be creating a choice column to replace the use of status reasons on the Milestone and Outcome tables.

Note: Status reasons cannot be changed in an editable grid.

Task 4.1 – Create choice

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

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, select Choices.

  6. Select + New, select More, and then select Choice.

  7. Enter Environmental Status for Display name.

  8. Enter Planned for Label.

  9. Select + New choice.

  10. Enter On Schedule for Label.

  11. Select + New choice.

  12. Enter Delayed for Label.

  13. Select + New choice.

  14. Enter Completed for Label.

  15. Select + New choice.

  16. Enter Cancelled for Label.

  17. Select Save.

    Choice column.

Task 4.2 – Add choice to Milestone table

  1. In the Objects pane on the left, expand Tables.

  2. Select the Milestone table.

  3. Under Schema, select Columns.

  4. Select + New column.

  5. Enter Milestone Status for Display name.

  6. Select Choice in the Data type drop-down and then select Choice again.

  7. Select Environmental Status in the Sync this choice with drop-down.

  8. Select Planned in the Default choice drop-down.

  9. Select Save.

    Add Choice column.

Task 4.3 – Add choice to Outcome table

  1. In the Objects pane on the left, expand Tables.

  2. Select the Outcome table.

  3. Under Schema, select Columns.

  4. Select + New column.

  5. Enter Outcome Status for Display name.

  6. Select Choice in the Data type drop-down and then select Choice again.

  7. Select Environmental status in the Sync this choice with drop-down.

  8. Select Planned in the Default choice drop-down.

  9. Select Save.

Exercise 5 – Create columns on the Project Outcome table

In this exercise, you will be creating columns on the Project Outcome custom table that you created in an earlier lab.

Task 5.1 – Create columns

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

  2. Make sure you are in the Dev One environment.

  3. Select Solutions.

  4. Open the Fabrikam Environmental solution.

  5. In the Objects pane on the left, expand Tables.

  6. Select the Project Outcome table.

  7. Select + New, and then select Column.

  8. Enter Stakeholders Notified for Display name.

  9. Select Choice in the Data type drop-down and then select Yes/no.

  10. Select Save.

  11. Select + New, and then select Column.

  12. Enter Outcome Completed Date for Display name.

  13. Select Date and time in the Data type drop-down and then select Date only.

  14. Select Save.

  15. Select + New, and then select Column.

  16. Enter Comments for Display Name.

  17. Select Text in the Data type drop-down and then under Multiple lines of text, select Plain text.

  18. Select Save.

Task 5.2 – Publish changes

  1. In the solution, select the Overview page.

    Overview.

  2. Select Publish all customizations.