Concepts

Introduction:

Microsoft Power Platform is a comprehensive suite of applications, services, and connectors that allows organizations to create custom applications and automate business processes. With Power Apps canvas apps and Power Automate cloud flows, app makers can build powerful solutions without writing code. In this article, we will explore how to run a cloud flow from a canvas app using the Microsoft Power Platform App Maker.

Prerequisites:

Before we begin, ensure that you have the following:

  • An active Microsoft Power Platform account.
  • A canvas app created using Power Apps.

Creating a Cloud Flow:

To run a cloud flow from a canvas app, you need to start by creating a cloud flow using Power Automate. The cloud flow will define the specific actions and triggers that will be executed when called from the canvas app. Follow these steps to create a cloud flow:

Step 1: Navigate to Power Automate:

  1. Log in to your Microsoft Power Platform account.
  2. Click on the ‘Apps’ button in the left navigation bar.
  3. Select ‘Power Automate’ to open the Power Automate designer.

Step 2: Create a New Cloud Flow:

  1. Click on the ‘New’ button to create a new cloud flow.
  2. Choose the appropriate trigger for your flow, based on your requirements. For example, you can use the trigger ‘Power Apps – When an app is used’ to run the flow when a canvas app is used.
  3. Configure the trigger by selecting the appropriate canvas app from the dropdown.

Step 3: Add Actions:

  1. Once the trigger is set, you can add actions to be executed when the flow is triggered.
  2. Click on the ‘+’ icon to add a new action.
  3. Select the desired connectors and actions from the available options to define the sequence of tasks in your cloud flow.
  4. Configure the actions by providing the necessary input parameters and data.

Step 4: Save and Test the Cloud Flow:

  1. After defining all the necessary actions, click on the ‘Save’ button to save the cloud flow.
  2. Test the flow by clicking on the ‘Test’ button and providing the required test data.
  3. Verify that the flow executes successfully and produces the expected results.

Running a Cloud Flow from a Canvas App:

Once the cloud flow is created and tested, you can call and run it from your canvas app. Follow these steps to run a cloud flow from a canvas app:

Step 1: Open the Canvas App:

  1. Log in to your Microsoft Power Platform account.
  2. Click on the ‘Apps’ button in the left navigation bar.
  3. Select the canvas app you want to use to trigger the cloud flow.

Step 2: Add a Button or Action:

  1. Open the canvas app in edit mode.
  2. Add a button or any other action element to your app’s design canvas.
  3. Configure the button/action to ‘Run’ or ‘Invoke’ the cloud flow you created earlier.

Step 3: Associate the Cloud Flow:

  1. Select the button/action element and navigate to its ‘OnSelect’ property.
  2. Use the ‘Power Automate’ option to associate the cloud flow with the button/action.
  3. Choose the specific cloud flow you want to run when the button/action is triggered.

Step 4: Test and Publish the App:

  1. Save the changes to your canvas app.
  2. Test the app by clicking on the button/action associated with the cloud flow.
  3. Verify that the cloud flow executes successfully and performs the desired actions.
  4. Once you are satisfied with the app’s functionality, publish it for wider use.

Conclusion:

Microsoft Power Platform App Maker enables businesses to build custom applications quickly and efficiently. By incorporating cloud flow capabilities, app makers can automate processes and improve productivity. This article explained the process of running a cloud flow from a canvas app using the Power Platform. Now you can harness the power of Power Apps and Power Automate to create seamless and automated solutions within your organization.

Answer the Questions in Comment Section

1. Can a canvas app call a cloud flow directly?

a) True

b) False

Correct answer: b) False

2. What action can a cloud flow perform with a canvas app?

a) Validate user input

b) Create canvas app screens

c) Publish the canvas app

d) None of the above

Correct answer: a) Validate user input

3. Can a cloud flow be triggered by an event in a canvas app?

a) True

b) False

Correct answer: a) True

4. What is the maximum number of steps that a cloud flow can contain when triggered from a canvas app?

a) 250

b) 500

c) 750

d) There is no limit on the number of steps

Correct answer: d) There is no limit on the number of steps

5. Which of the following actions can a cloud flow perform in a canvas app?

a) Retrieve data from a database

b) Display data in a gallery

c) Update records in a SharePoint list

d) All of the above

Correct answer: d) All of the above

6. Can a cloud flow run in the background while a canvas app is in use?

a) True

b) False

Correct answer: a) True

7. How can a canvas app pass parameters to a cloud flow?

a) Using the Power Automate connector

b) By passing them in the URL

c) By creating a custom API

d) All of the above

Correct answer: d) All of the above

8. Can a cloud flow call an external API from a canvas app?

a) True

b) False

Correct answer: a) True

9. Which of the following connectors are commonly used with cloud flows in canvas apps?

a) Common Data Service

b) SharePoint

c) OneDrive

d) All of the above

Correct answer: d) All of the above

10. Can a cloud flow be edited and modified after it is called from a canvas app?

a) True

b) False

Correct answer: a) True

0 0 votes
Article Rating
Subscribe
Notify of
guest
32 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Sonia Taylor
11 months ago

How do you set up the connection between the canvas app and the cloud flow?

Anitha Prabhu
10 months ago
Reply to  Sonia Taylor

You need to use the Power Automate connector within your canvas app. Just make sure your flow is already created in Power Automate.

Omkaar Kavser
9 months ago

Great overview of integrating canvas apps with Power Automate. Thanks!

Aryan Almeida
10 months ago

I’m struggling with passing parameters from my canvas app to the flow. Any tips?

Oskar Kehr
2 months ago
Reply to  Aryan Almeida

Make sure you use the ‘Run’ function of your flow connector and pass the required parameters in the same order as your flow accepts them.

Rosane Moreira
10 months ago
Reply to  Aryan Almeida

Also, ensure that the parameters you’re passing from the canvas app are in the correct format. A mismatch can cause the flow to fail.

Eetu Lammi
1 year ago

Interesting topic! Does running a flow from a canvas app consume a lot of resources?

Artur Stene
1 year ago
Reply to  Eetu Lammi

Not particularly, but it does depend on what your flow is doing. Complex operations can add some delay.

الینا گلشن
9 months ago
Reply to  Eetu Lammi

Agree. Lightweight flows that perform simple CRUD operations are usually pretty efficient.

Sophie Garnier
4 months ago

Amazing tutorial, very well explained!

Cohen Harris
1 year ago

I faced an issue where my flow doesn’t trigger at all. Any suggestions?

Isabela Barros
6 months ago
Reply to  Cohen Harris

Check the flow run history in Power Automate. It usually gives detailed logs to understand why a flow didn’t trigger.

Mathieu Masson
9 months ago
Reply to  Cohen Harris

Also, make sure that the connections used in the flow are active and properly authenticated.

Louisa Guerin
9 months ago

Good post! How scalable is this approach for enterprise-level applications?

Indie Harris
3 months ago
Reply to  Louisa Guerin

It’s quite scalable, but you might want to watch out for limitations on the number of flow runs per month, which depends on your licensing.

Charles Brown
1 year ago

Pretty basic infor. Could’ve gone a bit more in-depth.

32
0
Would love your thoughts, please comment.x
()
x