Lab - Create a new choice or modify an existing choice

Completed

Read this first - before you start the lab!

Important

For this lab, do not sign in with your credentials. Use the following steps to sign in to your lab environment with the correct credentials.

  1. Select Launch VM mode in this unit.
  2. You'll see a PowerShell window and a Windows Command window appear. After about two to three minutes, they'll close, and Power Apps will open automatically. Wait for the Power Apps home screen.
  3. To see the lab instructions, select the Instructions tab on the lab side bar.

You can now begin your work on this lab.

Create a new custom choice

You might want to make a new custom choice to use across many entities in Microsoft Dataverse. You can create a choice in two ways: by creating a choice when you define a new field within a table, or by creating a choice by using the choice functionality within the Power Apps portal.

To create a new custom choice by using the choice functionality in the Power Apps Portal, follow these steps:

  1. Sign into Power Apps maker portal. If using the virtual environment, skip to step 2.

  2. On the left pane, select ... More and select Choices.

    Screenshot of Choices in the maker portal.

  3. Select New choice on the menu at the top of the list.

  4. Enter a PC Type for the Display name.

  5. Add the following items to the choice by entering the label and then selecting + New choice:

    • Laptop

    • Desktop

    • Tablet

    • Server

    Dialog showing choice named PC Type with Laptop, Desktop, Tablet, and Server added.

    Note

    You can assign a unique numeric value by adjusting the value field beside the choice entry.

  6. Select the Save button.

The choice PC Type is now available to use with any column in any table within the environment. To use the new choice, follow the next steps.

Tip

It might take a few minutes for the new choice to appear in the list of available choices.

Create a new custom table

If you haven't created the custom table PC Manufacturers earlier in this learning path, complete the following steps.

  1. Select Tables on the left-hand side of the Power Apps maker portal.

  2. Select New table in the menu at the top of the list of tables and then select Set advanced properties.

  3. Enter the following for Display name: PC Manufacturers

    Screenshot of New table values with Create button.

  4. Select Save.

Add the choice to the custom table

  1. Select Tables on the left-hand side of the Power Apps maker portal.

  2. Select the new custom table PC Manufacturers in the list of tables. This will open the list of columns in the table.

  3. Select the New column button on the menu below the columns and data section.

    Screenshot of the new column button.

  4. Enter Type of PC as the name of the new column.

  5. Select Choice for the data type and select Choice again.

  6. Scroll down to the Sync this choice with option and select PC Type from the list of choices.

  7. Select the Save button.

You can also define a choice as you add a new column, without creating a choice in the portal. The choice that you add while defining a column can also be used with any column of type Choice in any table within the environment.

Define a choice when adding new columns

If you would rather define a choice as you add new columns to a table, follow these steps:

  1. Select Tables on the left-hand side of the Power Apps maker portal.

  2. Select the new custom table PC Manufacturers in the list of tables.

  3. Select Columns under Schema. This will open the list of columns in the table.

  4. Select the + New column button on the menu above the list of columns.

  5. Enter Screen Size in the Display name field.

  6. Select Choice in the Data type field and select Choice again.

  7. Locate the Sync this choice with field and select + New choice.

  8. Enter Screen Size in the Display name field.

  9. Enter 14 Inch, 17 Inch, 21 Inch, and None in the items.

    Choice dialog with the name set to Screen Size with 14 inch, 17 inch, 21 inch, and None options added.

  10. Select the Save button

  11. Select Screen Size for Sync this choice with field

  12. Select 14 inch in the Default choice field.

  13. Select the Save table button.

    Choice column dialog with the name set to ScreenSizeField, Data type set to choice, choice set to Screen Size, and Default value set to 14 inch.

  14. Select the Save button.

If you need to modify an existing choice, follow these steps:

  1. Sign into Power Apps maker portal.

  2. On the left pane, select ... More and select Choices.

  3. Select the Choice that you want to modify.

    1. Add a new entry by selecting the Add new choice button.

    2. You can delete an item by selecting the trashcan.

    3. You can add additional properties by selecting the settings icon next to the entry.

  4. Select the Save button to save changes.