|
1 | 1 | --- |
2 | | -title: Call logic apps from Power Apps |
3 | | -description: Call logic apps from Microsoft Power Apps by exporting logic apps as custom connectors. |
4 | | -services: logic-apps |
| 2 | +title: Call Consumption Workflows from Power Apps |
| 3 | +description: Call Consumption logic app workflows from Microsoft Power Apps by exporting logic apps as custom connectors. |
| 4 | +services: azure-logic-apps |
5 | 5 | ms.suite: integration |
6 | | -ms.reviewer: estfan, azla |
| 6 | +ms.reviewers: estfan, azla |
7 | 7 | ms.topic: how-to |
8 | | -ms.date: 01/10/2024 |
| 8 | +ms.update-cycle: 1095-days |
| 9 | +ms.date: 03/31/2026 |
| 10 | +# Customer intent: As an integration developer who works with Azure Logic Apps and Microsoft Power Apps, I want to call a logic app workflow from Power Apps by exporting my logic app resource as a custom connector. |
9 | 11 | --- |
10 | 12 |
|
11 | | -# Call logic app workflows from Power Apps |
| 13 | +# Call Consumption logic app workflows from Power Apps |
12 | 14 |
|
13 | | -[!INCLUDE [logic-apps-sku-consumption](~/reusable-content/ce-skilling/azure/includes/logic-apps-sku-consumption.md)] |
| 15 | +[!INCLUDE [logic-apps-sku-consumption](includes/logic-apps-sku-consumption.md)] |
14 | 16 |
|
15 | | -To call your logic app workflow from a Power Apps flow, you can export your logic app resource and workflow as a custom connector. You can then call your workflow from a flow in a Power Apps environment. |
| 17 | +When you need to run your logic app workflow from a Power Apps environment, export your logic app resource and workflow as a custom connector from the Azure portal. You can then use that connector in Power Apps to call your workflow. |
16 | 18 |
|
17 | 19 | ## Prerequisites |
18 | 20 |
|
19 | | -* An Azure account and subscription. If you don't have an Azure subscription, [sign up for a free Azure account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn). |
| 21 | +- An Azure account and subscription. [Get a free Azure account](https://azure.microsoft.com/pricing/purchase-options/azure-account?cid=msft_learn). |
20 | 22 |
|
21 | | -* A Power Apps license. |
| 23 | +- A Power Apps license. |
22 | 24 |
|
23 | | -* A Consumption logic app workflow with a request trigger to export. |
| 25 | +- A Consumption logic app workflow that starts with the **Request** trigger. |
24 | 26 |
|
25 | | - > [!NOTE] |
26 | | - > |
27 | | - > The Export capability is available only for Consumption logic app workflows in multitenant Azure Logic Apps. |
| 27 | + The Export capability is available only for Consumption logic app workflows in multitenant Azure Logic Apps. |
28 | 28 |
|
29 | | -* A Power Apps flow from where to call your logic app workflow. |
| 29 | +- A Power Apps flow from where to call your logic app workflow. |
30 | 30 |
|
31 | | -## Export your logic app as a custom connector |
| 31 | +## 1: Export your logic app as a custom connector |
32 | 32 |
|
33 | | -Before you can call your workflow from Power Apps, you must first export your logic app resource as a custom connector. |
| 33 | +Before you can call your workflow from Power Apps, first export your logic app resource as a custom connector by following these steps: |
34 | 34 |
|
35 | | -1. In the [Azure portal](https://portal.azure.com) search box, enter **logic apps**. From the results, select **Logic apps**. |
| 35 | +1. In the [Azure portal](https://portal.azure.com) search box, enter `logic apps`. From the results, select **Logic apps**. |
36 | 36 |
|
37 | | -1. Select the logic app resource that you want to export. |
| 37 | +1. From the **Logic apps** page, select the Consumption logic app resource to export. |
38 | 38 |
|
39 | | -1. On your logic app menu, select **Overview**. On the **Overview** page toolbar, select **Export** > **Export to Power Apps**. |
| 39 | +1. On the logic app sidebar, select **Overview**. On the **Overview** page toolbar, select **Export** > **Export to Power Apps**. |
40 | 40 |
|
41 | | - :::image type="content" source="./media/call-from-power-apps/export-logic-app.png" alt-text="Screenshot shows Azure portal and Overview toolbar with Export button selected."::: |
| 41 | + :::image type="content" source="./media/call-from-power-apps/export-logic-app.png" alt-text="Screenshot shows Azure portal and Overview toolbar with Export to Power Apps selected."::: |
42 | 42 |
|
43 | 43 | 1. On the **Export to Power Apps** pane, provide the following information: |
44 | 44 |
|
45 | 45 | | Property | Description | |
46 | 46 | |----------|-------------| |
47 | | - | **Name** | Provide a name for the custom connector to create from your logic app. |
48 | | - | **Environment** | Select the Power Apps environment from which you want to call your logic app. |
| 47 | + | **Name** | Enter a name for the custom connector to create from your logic app. | |
| 48 | + | **Environment** | Select the Power Apps environment from where to call your logic app workflow. | |
49 | 49 |
|
50 | | -1. When you're done, select **OK**. To confirm that your logic app was successfully exported, check the notifications pane. |
| 50 | + > [!NOTE] |
| 51 | + > |
| 52 | + > If you get the following error, make sure that your logic app workflow starts with the [**Request** trigger](../connectors/connectors-native-reqres.md#add-a-request-trigger): |
| 53 | + > |
| 54 | + > **The current Logic App cannot be exported. To export, select a Logic App that has a request trigger.** |
51 | 55 |
|
52 | | -### Export errors |
| 56 | +1. When you finish, select **OK**. To confirm that the portal successfully exported the logic app, on the Azure title bar, open the notifications pane. |
53 | 57 |
|
54 | | -Here are errors that might happen when you export your logic app as a custom connector and suggested solutions: |
| 58 | +## 2: Call your logic app workflow from Power Apps |
55 | 59 |
|
56 | | -* **The current Logic App cannot be exported. To export, select a Logic App that has a request trigger.**: Check that your logic app workflow begins with a [Request trigger](../connectors/connectors-native-reqres.md). |
| 60 | +1. In [Power Apps](https://powerapps.microsoft.com/), on the sidebar, select **Flows**. |
57 | 61 |
|
58 | | -## Connect to your logic app workflow from Power Apps |
| 62 | +1. On the **Flows** page, select the flow from where you want to call your logic app workflow. |
59 | 63 |
|
60 | | -1. In [Power Apps](https://powerapps.microsoft.com/), on the **Power Apps** home page menu, select **Flows**. |
| 64 | +1. On the flow information page toolbar, select **Edit**. |
61 | 65 |
|
62 | | -1. On the **Flows** page, select the flow from where you want to call your logic app workflow. |
| 66 | +1. In the flow designer, under the operation where you want to call the logic app workflow, select **+ New step**. |
| 67 | + |
| 68 | +1. In the **Choose an operation** search box, enter the name for your custom connector. |
| 69 | + |
| 70 | + To show only custom connectors in your environment, select the **Custom** tab, for example: |
63 | 71 |
|
64 | | -1. On your flow page toolbar, select **Edit**. |
| 72 | + :::image type="content" source="./media/call-from-power-apps/power-apps-custom-connector-action.png" alt-text="Screenshot shows Power Apps flow designer with exported custom connector and available operations."::: |
65 | 73 |
|
66 | | -1. In the flow editor, select **+ New step**. |
| 74 | +1. Select the operation to call from your flow. |
67 | 75 |
|
68 | | -1. In the **Choose an operation** search box, enter the name for your logic app custom connector. |
| 76 | +1. Provide the necessary information to run the selected operation. |
69 | 77 |
|
70 | | - Optionally, to see only custom connectors in your environment, filter the results using the **Custom** tab, for example: |
| 78 | +1. Save your changes. On the flow designer toolbar, select **Save**. |
71 | 79 |
|
72 | | - :::image type="content" source="./media/call-from-power-apps/power-apps-custom-connector-action.png" alt-text="Screenshot shows Power Apps flow editor with a new operation added for custom connector and available actions."::: |
| 80 | +## 3: Test your workflow |
73 | 81 |
|
74 | | -1. Select the custom connector operation that you want to call from your flow. |
| 82 | +1. In Power Apps, run the flow to call and run the logic app workflow. |
75 | 83 |
|
76 | | -1. Provide the necessary operation information to pass to the custom connector. |
| 84 | +1. In the [Azure portal](https://portal.azure.com), on the exported logic app resource sidebar, under **Development Tools**, select **Run history**. From the runs list, select the run triggered by your flow in Power Apps. |
77 | 85 |
|
78 | | -1. On the Power Apps editor toolbar, select **Save** to save your changes. |
| 86 | +1. Confirm that your workflow ran as expected from your Power Apps flow. |
79 | 87 |
|
80 | | -1. In the [Azure portal](https://portal.azure.com), find and open the logic app resource that you exported. |
| 88 | +For more information, see [Review workflow run history](view-workflow-status-run-history.md?tabs=consumption#review-workflow-run-history). |
81 | 89 |
|
82 | | -1. Confirm that your logic app workflow works as expected with your Power Apps flow. |
| 90 | +## Delete custom connector from Power Apps |
83 | 91 |
|
84 | | -## Delete logic app custom connector from Power Apps |
| 92 | +When you don't need your custom connector anymore, delete the connector from your flow. |
85 | 93 |
|
86 | | -1. In [Power Apps](https://powerapps.microsoft.com), on the **Power Apps** home page menu, select **Discover**. On the **Discover** page, find the **Data** tile, and select **Custom connectors**. |
| 94 | +1. In [Power Apps](https://powerapps.microsoft.com), on the sidebar, select **Custom connectors**. If **Custom connectors** doesn't exist on the sidebar, select **More**, and then select **Discover all**. |
87 | 95 |
|
88 | | -1. In the list, find your custom connector, and select the ellipses (**...**) button, and then select **Delete**. |
| 96 | +1. From the list, find your custom connector, select the ellipses (**...**) button, and then select **Delete**. |
89 | 97 |
|
90 | | - :::image type="content" source="./media/call-from-power-apps/delete-custom-connector.png" alt-text="Screenshot shows Custom connectors page with custom connector management options."::: |
| 98 | + :::image type="content" source="./media/call-from-power-apps/delete-custom-connector.png" alt-text="Screenshot shows a custom connector with the ellipses button selected."::: |
91 | 99 |
|
92 | | -1. To confirm deletion, select **OK**. |
| 100 | +1. To finish, select **Delete**. |
93 | 101 |
|
94 | 102 | ## Troubleshoot problems |
95 | 103 |
|
96 | 104 | ### Environment not found |
97 | 105 |
|
98 | | -This error usually happens when the connection to a logic app workflow is unavailable or incorrect. To help you troubleshoot this problem, try the following options: |
| 106 | +This error usually occurs when the connection to a logic app workflow is unavailable or incorrect. To help you troubleshoot this problem, try the following options: |
99 | 107 |
|
100 | 108 | | Option | Details | |
101 | | -|---|---| |
| 109 | +| ------ | ------- | |
102 | 110 | | Check the environment name | Make sure that the environment name in the connection matches the deployment environment for your logic app resource. | |
103 | | -| Check environment availability | Make sure that the logic app resource environment is available and not disabled or deleted. To check environment status, go to the Power Platform admin center. | |
104 | | -| Check connection settings | In Power Apps, check that connection to the logic app is correctly set up and points to the correct environment. | |
105 | | -| Check permissions | Make sure you have the required permissions to access the logic app workflow and environment. You might need specific roles assigned to you. For more information, see the following documentation: <br><br>- [Secure data and access to workflows](/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal#access-to-logic-app-operations) <br><br>- [Access for inbound calls to request-based triggers](/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal#access-for-inbound-calls-to-request-based-triggers) | |
| 111 | +| Check environment availability | Make sure that the logic app resource environment is available and not disabled or deleted. To check the environment status, go to the Power Platform admin center. | |
| 112 | +| Check connection settings | In Power Apps, check that the connection to the logic app is correctly set up and points to the correct environment. | |
| 113 | +| Check permissions | Make sure you have the required permissions to access the logic app workflow and environment. You might need specific roles assigned to you. <br>For more information, see: <br>- [Secure data and access to workflows](/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal#access-to-logic-app-operations) <br>- [Access for inbound calls to request-based triggers](/azure/logic-apps/logic-apps-securing-a-logic-app?tabs=azure-portal#access-for-inbound-calls-to-request-based-triggers) | |
106 | 114 | | Update the logic app | Check whether the logic app workflow has recent changes. For example, if the resource moved to a different environment, update the connection in Power Apps to reflect these changes. | |
107 | 115 | | Review logs | Check the logs in Power Apps and Azure Logic Apps for any other error messages or information that might help identify the problem. | |
108 | 116 |
|
109 | 117 | ## Related content |
110 | 118 |
|
111 | | -* [Managed connectors for Azure Logic Apps](/connectors/connector-reference/connector-reference-logicapps-connectors) |
112 | | -* [Built-in connectors for Azure Logic Apps](../connectors/built-in.md) |
| 119 | +- [Managed connectors for Azure Logic Apps](/connectors/connector-reference/connector-reference-logicapps-connectors) |
| 120 | +- [Built-in connectors for Azure Logic Apps](../connectors/built-in.md) |
0 commit comments