Practice Lab 1 – Create cloud flows

In this lab you will create cloud flows.

What you will learn

  • How to create Power Automate cloud flows from a template and with Copilot
  • How to create a Power Automate cloud flow from blank and add actions

High-level lab steps

  • Create a cloud flow from a template
  • Create a cloud flow with Copilot
  • Create a cloud flow
  • Monitor cloud flow activity

Prerequisites

  • Must have completed Lab 0: Validate lab environment

Detailed steps

Exercise 1 – Create a cloud flow from a template

Task 1.1 - Select a template

  1. Navigate to the Power Automate portal https://make.powerautomate.com

  2. If the Welcome to Power Automate pop-up dialog is displayed, select Get started.

  3. Select the Dev One environment.

    Environment selector in Power Automate.

  4. Select Templates from the left-side menu.

  5. Select the All templates tab.

  6. Enter Get Today's Weather Forecast in the Search templates field and press Enter.

    Screenshot of the weather forecast template search results.

  7. Select Get Today’s Weather Forecast by Msnweather.

[!NOTE] Select the template that uses only MSN Weather, not Get today’s weather forecast for my current location. The template used in this exercise does not require access to your device’s location.

  1. If prompted, select Create for MSN Weather. If a valid connection is already listed, use the existing connection.

    Screenshot of the MSN Weather connection and Continue button.

  2. Select Continue to open the flow designer.

  3. Select the Get forecast for today action. Keep the template’s Location set to Hyderabad and Units set to Imperial.

    Screenshot of the weather action parameters and Save button.

  4. Select Save.

Task 1.2 - Run the flow

  1. Select Test, select Manually, and then select Test.

  2. If a connection review is shown, select Continue.

  3. Select Run flow.

    Screenshot of running the weather forecast flow.

  4. Select Done.

  5. Wait for the flow to complete. You should see the Your flow ran successfully message.

  6. Select the <- Back button from the top left of the command bar to return to the flow details page.

  7. Locate the Succeeded run in the flow run history.

    Screenshot of the weather forecast flow run history.

Task 1.3 - Review the flow

  1. Select the date and time in the flow run history.

  2. Select the Get forecast for today action with the green tick.

    Screenshot of the successful weather forecast action.

  3. In Run results, review Inputs. Under parameters, notice that Location is Hyderabad and units is I, for Imperial.

    Screenshot of the weather forecast action inputs.

  4. Scroll to Outputs. Notice that statusCode is 200. In body, review responses.daily.tempHi, responses.daily.tempLo, and units.temperature. The forecast temperatures are in Fahrenheit.

[!NOTE] This template returns weather data in the flow run results. It does not send an email or a notification. Forecast values change each day.

  1. Select Edit, then select the Get forecast for today action to view its parameters.

  2. Select the Flow checker icon next to Save. There should be no errors or warnings.

  3. Close the Flow checker pane.

Task 1.4 - Test the flow

  1. Select Test, select Automatically and then select With a recently used trigger. Select the Succeeded flow run.

    Screenshot of testing the weather forecast flow with a recently used trigger.

  2. Select Test.

  3. Wait for the replay to finish and confirm that the flow succeeds.

  4. Select the <- Back button from the top left of the command bar.

Exercise 2 – Create a cloud flow with Copilot

Task 2.1 - Enter a prompt

  1. Navigate to the Power Automate portal https://make.powerautomate.com

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

  3. Select Home from the left-side menu.

  4. Under Create your automation with Copilot enter Every day send me an email with the daily summary from MSN Weather

    Screenshot of copilot prompt.

  5. Select Generate.

    Screenshot of suggested flow.

  6. Select Keep it and continue.

    Screenshot of Copilot review page.

  7. Select Create flow.

    Screenshot of flow created by Copilot.

Task 2.2 - Configure flow actions

  1. Select the Get forecast for today action.

  2. Enter Seattle for Location.

  3. In the Units drop-down, select Imperial.

    Screenshot of flow step parameters.

  4. Select the Send an email action.

  5. In the Body field, delete the existing content.

  6. Select the dynamic value icon or enter / to Insert dynamic content.

  7. In the search field, enter daily summary.

  8. Select Day Summary.

  9. Select Save.

[!NOTE] If an error with status code “Forbidden” and details “ConnectionAuthorizationFailed” appears after saving, complete steps 10–13 to create new connections. If no error appears, skip to step 14.

  1. Select the Get forecast for today action, select Change connection reference, select Add new, and then select Create new.

  2. Select the Get my profile action, select Change connection reference, select Add new, and then select Sign in. Sign in using the tenant credentials from the Authorized Lab Host.

  3. Select the Send an email action, select Change connection reference, select Add new, and then select Sign in. Sign in using the tenant credentials from the Authorized Lab Host.

  4. After creating the new connections for each action, select Save.

  5. To test the flow, select Test, select Manually, and then select Test.

  6. Select Run flow and then select Done.

  7. Select the <- Back button from the top left of the command bar.

Exercise 3 – Create a cloud flow from blank

Task 3.1 - Create the trigger

  1. Navigate to the Power Automate portal https://make.powerautomate.com

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

  3. Select + Create from the left-side menu.

  4. Select Automated cloud flow.

  5. Enter Important email for Flow name.

  6. Enter email arrives in the Search all triggers field.

  7. Select When a new email arrives (V3).

    Screenshot of build an automated flow dialog.

  8. Select Create.

Task 3.2 - Configure the trigger

  1. Select the When a new email arrives (V3) action.

  2. Select Show all.

    Screenshot of email trigger parameters automated flow dialog.

  3. Select No for Include attachments.

  4. Select High for Importance.

  5. Select Inbox for Folder.

Task 3.3 - Add an action

  1. Select the + icon under the trigger and select Add an action.

  2. If prompted, select Allow for See text and images copied to clipboard.

  3. Enter post message in the search field.

    Screenshot of action search.

  4. Select Post message in a chat or channel under Microsoft Teams.

  5. Select Sign in.

  6. Use your tenant credentials.

  7. Select Flow bot for Post as.

  8. Select Chat with Flow bot for Post in.

  9. Enter your tenant user id for Recipient.

  10. Enter / in the Message field and select Insert dynamic content.

  11. Select Subject.

    Screenshot of dynamic content.

  12. Select Save.

  13. Select the <- Back button from the top left of the command bar.

Exercise 4 – Monitor flows

Task 4.1 - Cloud flow activity

  1. Navigate to the Power Automate portal https://make.powerautomate.com

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

  3. Select … More from the left-side menu.

    Screenshot of more options for Power Automate portal.

  4. Select Discover all and search for Cloud flow activity under the Monitor section.

    Screenshot of more options for Power Automate portal.

  5. Select the pin icon for Cloud flow activity.

  6. Select the Cloud flow activity tab from the left-side menu.

    Screenshot of cloud flow activity.