Lab 04.3: Import data

In this lab you will be inputting data into your Dataverse tables, refining some views, and importing data using a Power Automate flow.

What you will learn

  • Import data and refine views
  • Import solutions

High-level lab steps

  • Input data and refine views
  • Import Problem Report rows using a Power Automate flow

Detailed steps

Exercise 1: Input data

In this exercise, you will input data to the Dataverse tables.

Task 1: Input data

  1. Navigate to https://make.powerapps.com and make sure you are in the correct environment.

  2. Select Apps and play the Company 311 Admin application created in the previous exercise.

  3. Select Manage Problems at the bottom left and change the area to Settings.

  4. Using the navigation on the left, choose Departments and select the + New button.

  5. Enter Information Technology for Name and select Save.

  6. Select Buildings under the Taxonomy group.

  7. Select + New.

  8. Enter San Francisco Main Campus for Name and select Save & Close.

  9. Select + New again.

  10. Enter London Paddington for Name and select Save & Close. You should now have two Building rows.

    A Screenshot with an arrow pointing to the chevron icon next to settings in the bottom left corner of the window

  11. Use the area selector to navigate from Settings to Manage Problems.

  12. Select + New.

  13. Enter Broken door for Title, select San Francisco Main Campus for Building, enter The main entrance door will not open all the way for Details, and select Save.

    NOTE

    You cannot save images before creating the row in the database. Select Save and then you may upload a picture.

  14. Select Open file on the Photo field.

  15. Select an image from your device. The sample image displayed below can be found here.

    TIP

    The example image file can be found here: F:\Instructions\Labs\02-4\Resources\door.png

  16. The image should now display on the form.

    A screenshot of a vector image of a door which should appear

  17. Select Save & Close.

Exercise 2: Import data

In this exercise, you will import sample data into the environment. Rows are imported by a Power Automate cloud flow that you will first import using a solution.

Task 1: Import solution

  1. Navigate to the Power Apps maker portal https://make.powerapps.com and make sure you are in the correct environment.

  2. Select Solutions and select Import solution from the command bar.

  3. Select Browse.

  4. Select the DataImport.zip solution file located in the Lab Resources folder and select Open.

    TIP

    The solution file can be found here: F:\Instructions\Labs\02-4\Resources\DataImport.zip

  5. Select Next.

  6. Select Next again.

  7. Select Continue, if necessary.

  8. After the connections show a green tick, select Import and wait for the notification banner ‘Solution “Data Import” imported successfully’ to appear.

  9. Select Publish all customizations and wait for the publishing to complete.

Task 2: Review and run flow

  1. Open the Data Import solution you imported.

  2. Select the Import Data flow.

    A screenshot with the Import Data flow highlighted

  3. Select Edit from the Command Bar.

  4. If necessary, dismiss the welcome prompt by selecting Get started.

  5. Expand the InputData step.

  6. Review the JSON text in the Value field. This is the data that will be imported into your environment. Note: The image data is encoded as Base-64 text.

  7. Expand the EachDepartment for each control.

  8. Expand and review the Upsert Department step.

  9. Expand and review the rest of the steps.

  10. Select Save to save the flow.

  11. Select the 🡠 back button to go back to the previous page.

    A Screenshot with an arrow pointing to the arrow icon to go back

  12. Open the Import Data flow details page again and select Run.

    TIP

    If the Run option is disabled, make sure the flow has been enabled by selecting Turn on.

  13. Select Run flow.

  14. Select Done.

  15. Wait for the flow run to complete. Select the Refresh Flow runs button to check if the flow run completes successfully.

    A Screenshot with an arrow pointing to the refresh button in the top right corner and a border around the status showing it has succeeded

Task 3: Review imported data

  1. Navigate to the Power Apps maker portal https://make.powerapps.com and make sure you are in the correct environment.

  2. Select Apps and play the Company 311 Admin model-driven application.

  3. The app should open with the Active Problem Reports view. You should see new rows of data.

    A screenshot with a border around problem new reports rows.

    NOTE

    Because the input status reason is picked randomly, some of the imported problem report rows may have the status reason of Completed, Won’t Fix, or Inactive. Select the Resolved Problems view to find these rows.

  4. Open one of the Problem Report Rows.

  5. Select the Search icon of the Building lookup and verify that building rows were imported.

    A screenshot of a border around the building lookup with the building rows imported

  6. Scroll down and select the Department lookup.

  7. Make sure the Department rows got imported.