Practice Lab 2.2 - Import data
Scenario
You are a functional consultant working on the Fabrikam project. Your need to import some data in the your Dataverse environment. You choose to leverage Power Query to transform the data and complete the import.
Exercise 1 – Import data
In this exercise, you will import Outcome rows into your Microsoft Dataverse environment using a dataflow.
Task 1.1 – Load Excel file to OneDrive
-
Navigate to the Power Apps Maker portal https://make.powerapps.com.
-
Click on the Waffle button in the upper left corner to change applications and select OneDrive. (It may take a moment for your OneDrive to be set up. Click Your OneDrive is ready when you see it on the screen.)
-
Click Upload from the top menu and select Files.
-
Locate and select the Outcome data.xlsx file and click Open.
This file is located in the Documents\PL-200 folder on your machine.
Task 1.2 – Create a dataflow
-
Navigate to the Power Apps Maker portal https://make.powerapps.com.
-
Make sure you are in your Practice environment.
-
Expand Dataverse from the left navigation menu and select Tables.
-
Click Import from the action menu and then select Import data.
-
In the Choose data source dialog. Select Excel workbook.
-
Click Browse OneDrive. If prompted, sign in with your Microsoft 365 credentials.
-
Select the Outcome data.xlsx file you uploaded to OneDrive and click Select.
-
Click Next.
-
Check the box next to Table1.
-
Click Next. Do not navigate away from this page.
-
Select the first three Do Not Modify columns. You can use Ctrl on your keyboard with the mouse to select multiple columns.
-
In the Home tab of the ribbon, click Remove columns to delete these three columns.
-
Select the Estimated Completion Date column.
-
Right click on the Estimated Completion Date column and select Replace values.
-
Enter null for Value to find.
-
Enter a date in three month’s time for Replace with (you can use format MM/DD/YYYY).
-
Click OK. The Estimated Completion Dates should show the date you chose.
-
Click Next.
-
Select Load to existing table.
-
Select contoso_outcome in the Destination table drop-down.
-
Map Estimated Completion Date, Goal, Outcome Description, Outcome status, Outcome Title, and Target Aim to their corresponding destination columns.
-
Click Next.
-
Select Refresh manually.
-
Click Publish.
Task 1.3 – Test Your work
-
Under Dataverse in the Maker portal, select Tables.
-
Locate and click to open the Outcome table.
-
You should see all the imported Outcome rows.
-
In the Maker portal, select Apps.
-
For the Environmental Project Delivery model-driven app, Click on the ellipses (…) and select Play and sign in with your Microsoft 365 credentials if prompted.
-
In the left-hand navigation of the app, select Outcomes.
-
The imported Outcome records should be in the view.
-
Double-click to open one of the Outcome records you imported.
-
Verify the Estimated Completion Date column is set to a future date.
-
Verify that the Outcome Lifecycle business process flow is visible at the top of the form.