Duration: 45 mins
Lab Scenario
-
Exercise 1 - Import and review solution components
-
Task 1: Import, review solution components and run flow
-
Task 2: Test the apps
-
-
Exercise 2 – Add a column for My Notes
-
Task 1: Add a new column
-
Task 2: Update admin app
-
-
Exercise 3 – Verify the pre-installed Visual Studio Code Installer and Power Platform CLI Extension
- Task 1: Test the Power Platform CLI
Working as part of the Prioritz fusion team you will be setting up your Power Platform development environment. You will import and review the current solution and explore the current state of the Prioritz apps, flows and tables. You will be also adding a column to a table and modifying the app to use it.
Welcome to your Developer in a day workshop! We've prepared a seamless environment for you to explore and learn about Azure services. Let's begin by making the most of this experience:
Once you're ready to dive in, your virtual machine and Lab Guide will be right at your fingertips within your web browser.
Your virtual machine is your workhorse throughout the workshop. The lab guide is your roadmap to success.
To get a better understanding of your lab resources and credentials, navigate to the Environment Details tab.
For convenience, you can open the lab guide in a separate window by selecting the Split Window button from the Top right corner.
Feel free to start, stop, or restart your virtual machine as needed from the Resources tab. Your experience is in your hands!
-
On your virtual machine, click on the Azure Portal icon as shown below:
-
You'll see the Sign into Microsoft Azure tab. Here, enter your credentials:
-
Next, provide your password:
-
If you see the pop-up Stay Signed in?, click No.
-
If you see the pop-up You have free Azure Advisor recommendations!, close the window to continue the lab.
-
If a Welcome to Microsoft Azure popup window appears, click Maybe Later to skip the tour.
-
Now, click on the Next from the lower right corner to move to the next page.
Now you're all set to explore the powerful world of technology. Feel free to reach out if you have any questions along the way. Enjoy your workshop!
In this exercise, you will import the current solution into the pre-created dev environment and review the components of the solution. You will also run a flow that will add sample data to your environment, and test the applications in the solution.
Note: The Dev environment is already pre-created as a part of the prerequisites.
-
In the JumpVM, click on the Power Apps portal shortcut of the Microsoft Edge browser that is available on the desktop.
-
When you click on the Power Apps portal, the edge browser welcome screen will come up, and select Start without your data.
-
On the We can help you import your browsing data from Google window, click on Continue without this data.
-
On the next window, click on Confirm and start browsing.
-
Now, you will see two tabs in the Edge browser, close the first tab named Microsoft Edge.
-
On the Sign in window, you will see the login screen, enter the following username (1) and click on Next (2).
- Email/Username:
-
Now enter the following password (1) and click on Sign in (2).
- Password:
-
If you are presented with Help us protect your account, click on Skip for now.
-
If you see the pop-up Stay Signed in?, click No.
-
Once logged in, click on Environment (1) and select the pre-created dev environment named DEV_ENV_ (2).
-
Now, click on Solutions(1) from the left hand side menu and click Import Solution(2).
-
Click Browse.
-
Navigate to this path
C:\LabFiles\Developer-in-a-day\Student\L01 - Getting started\Resources
in file explorer , select the Prioritz_1_0_0_7.zip file, and click Open. -
Make sure the Prioritz(1) file is selected and Click Next(2).
-
Click Next again on the import solution blade.
-
Click on the select a connection dropdown and then select + New connection.
-
Click Create in a newly opened browser window and Sign In if prompted.
-
Close the connection browser window or tab.
-
Click Refresh.
-
Check the connection and click the Import button to import the solution.
-
Wait until the solution import to complete.
-
You should now see the solution you imported in the list of solutions.
-
Open the Prioritz solution you imported.
-
Expand Tables (1) and select the PrioritZ Topic (2) table.
-
Select the Columns under Schema and review the columns of the PrioritZ Topic table.
Info: The standard columns are built-in, and all tables have them. The custom columns were created by the team for this application.
-
Select the Relationships tab from the Columns dropdown and review how this table is related to other tables.
-
Select Cloud flow (1) and open the Import sample data – Topics (2) flow.
-
Click on Edit button to review the flow.
-
Expand the Parse JSON step and review the data this flow will create.
-
Expand the Apply to each topic step.
-
Expand the Apply to each topic item step.
-
The Apply to each step should look like the image below. This is the logic for the automation.
-
Click on the <- back button.
-
Click on the flow name to open the flow details screen.
-
Click on Run to run the flow.
-
Click the Run flow button on the Run flow blade.
Note: If you receive this error
Error from the token exchange: Permission denied due to missing connection
while running the flow, this is because the Dataverse connection is not being added correctly. Delete the imported solution and try to re-import the solution by performing the Steps 11-21 of this task again, then try to trigger the flow again. -
Click Done and wait for the flow run to complete.
-
The flow should run successfully. If you want, you can click on the run row and it will show you the details of what the flow did.
-
Navigate back to PrioritZ solution by clicking on Cloud flows. Alternatively, you can also open the Power Apps maker portal by using this URL
https://make.powerapps.com
if not already open. Make sure the development environment named DEV_ENV_ (2) is selected. -
Navigate to Solutions blade by clicking on Back to Solutions (<-) button.
-
Select Apps (1) from the left-hand side menu of Power Apps, you should see two applications named PrioritZ Ask and PrioritZ Admin (2).
Info: PrioritZ Admin app is used to manage topics being asked about and PrioritZ Ask app allows users to respond.
-
Launch the PrioritZ Admin application.
-
You should see the below four topics.
-
Click to open Event banner topic.
-
You should see the topic details with some topic items.
-
Click on the < back button.
Note: You should go back to the home screen.
-
Now, click on the + button to add a new topic.
-
Provide the below information and click add a picture that is present below Respond By field.
-
Topic: Enter
Change Taco Tuesday to some other food
-
Details: Enter
People are tired of tacos, what should we have instead of tacos?
-
Respond By: Select today's date.
-
-
Navigate to this path C:\LabFiles in file explorer, select image.png and click open.
-
Type Tamale Tuesday on the Choice field and click add a picture that is present below the Choice field.
-
Navigate to this path
C:\LabFiles
in File Explorer, select image.png and click open. -
Click + to add the choice.
-
Add a couple more choices by repeating steps 12-14.
-
Choice 1 : Enter
Steak Tuesday
-
Choice 2: Enter
Cheese and Wine Tuesday
-
-
Click on Save button to save the topic.
-
The new topic should be saved, and you should be navigated back to the main screen.
-
You should see the topic you added to the list of topics.
-
Close the PrioritZ Admin application by closing the browser tab in which the PrioritZ Admin application is open.
-
Select Apps (1) from the left-hand side menu of Power Apps and launch the PrioritZ Ask (2) application.
-
You should see a list of topics. Open the Change Taco Tuesday to some other food topic that you created in the previous steps.
-
Click on the up/down icons order the items in the order you prefer them and click Vote.
-
You should be navigated back to the main screens, and you should see a notification message.
-
Close the PrioritZ Ask app by closing the browser tab in which the PrioritZ Ask application is open.
In this exercise, you will add a new column My Notes to the topic table and update the PriortZ Admin application.
-
Navigate to the Power Apps maker portal by using the below URL if not already open. Make sure the development environment named DEV_ENV_ (2) is selected.
https://make.powerapps.com
-
Select Solutions (1) from the left-hand side menu of Power Apps and open the PrioritZ (2) solution.
-
Expand Tables and select the PrioritZ Topic table.
-
Select the Columns tab that is present under Schema and click + New column.
-
Enter the below value in the Display name field.
My Notes
-
Now, search for Plain text (1) under Data type then select the one that comes under Multiline Text (2) , and click Save (3).
Note: Do not navigate away from this page.
-
Make sure you are still in the PrioritZ solution. Select Apps (1) under Objects and select the PrioritZ Admin (2) application and click on Edit (3).
-
Select the Add Topic Screen.
-
Click + Insert(1) and select Text input(2).
-
Double-click on the newly added Text input and enter the below value to rename the text input.
Notes textbox
-
Make the add picture control smaller if needed, and move the Respond By and label textbox down and place the Notes textbox between the Details control and the Respond by label.
-
Select Notes textbox and then HintText from the properties dropdown.
-
Change the HintText value of the Notes textbox to the below value.
My notes
-
Select the Mode from the properties dropdown and change its value by entering the below text.
TextMode.MultiLine
-
Select Save topic icon under Add Topics Screen section.
-
Replace the OnSelect formula of the Save topic icon with the formula below. The Patch creates a new row in the Dataverse table.
Set(newTopic,Patch('Prioritz Topics',Defaults('Prioritz Topics'),{'My Notes': 'Notes textbox'.Text,Topic:'Topic name textbox'.Text,Details:'Topic details textbox'.Text,'Respond By':'respond by date picker'.SelectedDate,Photo:AddTopicImage.Image}));ForAll(colAddChoices,Patch('Prioritz Topic Items',Defaults('Prioritz Topic Items'),{Choice:ThisRecord.choice,'PrioritZ Topic':newTopic,Photo:ThisRecord.photo}));Back()
-
Select the View Topic Screen (1) from the Screens tab.
-
Click + Insert(1) tab and select Text label(2).
-
Double-click on the newly added label and enter the below value to rename the label you just added.
Notes label
-
Change the Text value of the Notes label with the below text.
'Topics gallery'.Selected.'My Notes'
-
Rearrange the controls and move the Notes label between the details label and the Topic items gallery.
-
Select the Home Screen and click Preview the app.
-
Click on the + button to add a new topic.
-
Fill out the form by providing the below information and click add a picture that is present below the Respond By field.
-
Topic:
Test Notes
(1) -
Details:
Testing the notes
(2) -
Text input:
Prioritz Admin topic
(3) -
Respond By: Today's date (4)
-
-
Navigate to this path C:\LabFiles in file explorer, select image.png and click open.
-
Type Test One on the Choice field and click add a picture that is present below the Choice field.
-
Navigate to this path
C:\LabFiles
in File Explorer, select image.png and click open. -
Click + to add the choice.
-
Add one more choice by repeating steps 20-22 of this task.
- Choice 1 : Enter
Test Two
- Choice 1 : Enter
-
After adding all the Choices and topic details, your screen should look like the below screenshot.
-
Now, click on the Save button. The new topic should be saved.
-
Click to open the Test Notes topic that you just created.
-
The notes Prioritz Admin topic that you added earlier should now be visible.
-
Close the app preview.
-
Click Publish.
-
Select Publish this version and wait for the publishing to complete.
-
You may close the app designer.
In this exercise, you will review and test the Power Platform CLI extension in Visual Studio Code.
Note: Visual studio code and Power platform CLI installation are already done as a part of the prerequisites.
-
Navigate to the Power Platform admin center by using the below URL and select Environments.
https://admin.powerplatform.microsoft.com/environments
-
If you are presented with Help us protect your account, click on Skip for now.
-
If you see the pop-up Stay Signed in?, click No.
-
Click to open your dev environment named DEV_ENV_.
-
Right-click on the Environment URL value and paste the value in Notepad.
Note: Make sure the Environment URL value is copied along with the https. Your copied value should look like this
https://orgxxxxxx.crm.dynamics.com/
-
In the JumpVM, start Visual Studio Code using the shortcut available on the desktop.
-
Click Terminal and select New Terminal.
-
Run the below command in the terminal.
pac
Info: If u found an error after using the pac command, try uninstalling the Power Platform tool and re-install it, then retry the step.
-
Replace
<your environment URL>
in the below command with the value of the environment URL that you copied earlier then run the command.pac auth create --name DevAuth --url <your environment URL>
Info: After adding the environment URL, the command will look like this:
pac auth create --name DevAuth--url https://org32172839283.crm.dynamics.com/
-
Complete the Sign in process, using the below credentials.
- Email/Username:
- Password:
-
If you are presented with Help us protect your account, click on Skip for now.
-
Select Power Platform (1) tool, you should now have at least one auth profile (2). If you have more than one profile, make sure the profile you created is selected
Note : If you are able to see the Universal Profile instead of DeVAuth profile, it is because of adding the incorrect Environment URL value in the pac auth create command in Step 9. To fix this issue, follow the below steps:
- Delete the Universal Profile from Visual Studio Code by clicking on the delete button.
- Copy the correct Environment URL value by following Step 5 of this task.
- Perform the Step 9 of this task again to create the auth profile.
-
Click Terminal and select New Terminal if not already open.
-
Run the command below to see a list of solutions.
pac solution list
-
You should see a list of solutions installed on your environment.