Exercise - Deploy and test a solution-aware cloud flow in a different environment

Completed

In this exercise, you apply your learned knowledge to deploy a solution-aware cloud flow in a new environment.

Scenario

While you're modifying a solution that contains a solution-aware cloud flow and an environment variable, you're asked to deploy the live version in a different environment. You're also asked to adjust the notification with the name of this new environment and then test the flow to demonstrate the successful deployment.

Preparation

For this exercise, you need a different Dataverse environment than the one in which you created the solution in the previous unit.

You need to have permission to import Microsoft Power Platform solutions in this environment.

The following video takes you through the steps for this exercise. The detailed instructions are listed below.

Exercise

Edit the flow and then save a draft version to help demonstrate that only the live version imports in the new environment. To proceed, follow these steps:

  1. In the solution, select the cloud flow and then select Edit.
  2. Add a new step, and then search for and select Post message in a chat or channel from the Teams connector.
  3. Configure the action by using the following values:
    • Post as - Flow bot
    • Post in - Channel
    • Team - The team name where the channel to post the notification is located
    • Channel - The channel to post the notification
    • Message- A message such as This is a secondary message
  4. Select Save draft to complete this step.

    Screenshot of editing the flow, showing values filled in for the action.

Optionally, you can test this flow and confirm that it generates two messages in the Teams channel.

Next, you export the solution and import it in the new environment. Follow the instructions from Exercise - Import and export solutions - Training | Microsoft Learn.

During this process, you need to provide a current value for the environment variable. Proceed with a different name than the one that you opted for in the original environment.

Screenshot of the Import a solution page, showing the Environment Name highlighted.

After you import the solution successfully, run the flow in this new environment. Two messages should post in the Teams channel, including the one with the value that you provided for the environment variable.

Screenshot of two messages being posted in the Teams channel.

If you edit the flow, notice that the draft version is now the published version. The reason is because the Publish all changes action was selected during the export process. If you return to the original environment and review the version history of the flow, notice that the system published a live version of your draft.

Next steps

Now you've learned how to deploy and test a solution-aware cloud flow. Next, you learn how to troubleshoot a cloud flow.