|
| 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 |
| 5 | +ms.suite: integration |
| 6 | +ms.reviewer: estfan, azla |
| 7 | +ms.topic: how-to |
| 8 | +ms.date: 01/10/2024 |
| 9 | +--- |
| 10 | + |
| 11 | +# Call logic app workflows from Power Apps |
| 12 | + |
| 13 | +[!INCLUDE [logic-apps-sku-consumption](../../includes/logic-apps-sku-consumption.md)] |
| 14 | + |
| 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. |
| 16 | + |
| 17 | +## Prerequisites |
| 18 | + |
| 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/free/?WT.mc_id=A261C142F). |
| 20 | + |
| 21 | +* A Power Apps license. |
| 22 | + |
| 23 | +* A Consumption logic app workflow with a request trigger to export. |
| 24 | + |
| 25 | + > [!NOTE] |
| 26 | + > |
| 27 | + > The Export capability is available only for Consumption logic app workflows in multitenant Azure Logic Apps. |
| 28 | +
|
| 29 | +* A Power Apps flow from where to call your logic app workflow. |
| 30 | + |
| 31 | +## Export your logic app as a custom connector |
| 32 | + |
| 33 | +Before you can call your workflow from Power Apps, you must first export your logic app resource as a custom connector. |
| 34 | + |
| 35 | +1. In the [Azure portal](https://portal.azure.com) search box, enter **logic apps**. From the results, select **Logic apps**. |
| 36 | + |
| 37 | +1. Select the logic app resource that you want to export. |
| 38 | + |
| 39 | +1. On your logic app menu, select **Overview**. On the **Overview** page toolbar, select **Export** > **Export to Power Apps**. |
| 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."::: |
| 42 | + |
| 43 | +1. On the **Export to Power Apps** pane, provide the following information: |
| 44 | + |
| 45 | + | Property | Description | |
| 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. |
| 49 | + |
| 50 | +1. When you're done, select **OK**. To confirm that your logic app was successfully exported, check the notifications pane. |
| 51 | + |
| 52 | +### Export errors |
| 53 | + |
| 54 | +Here are errors that might happen when you export your logic app as a custom connector and suggested solutions: |
| 55 | + |
| 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). |
| 57 | + |
| 58 | +## Connect to your logic app workflow from Power Apps |
| 59 | + |
| 60 | +1. In [Power Apps](https://powerapps.microsoft.com/), on the **Power Apps** home page menu, select **Flows**. |
| 61 | + |
| 62 | +1. On the **Flows** page, select the flow from where you want to call your logic app workflow. |
| 63 | + |
| 64 | +1. On your flow page toolbar, select **Edit**. |
| 65 | + |
| 66 | +1. In the flow editor, select **+ New step**. |
| 67 | + |
| 68 | +1. In the **Choose an operation** search box, enter the name for your logic app custom connector. |
| 69 | + |
| 70 | + Optionally, to see only custom connectors in your environment, filter the results using the **Custom** tab, for example: |
| 71 | + |
| 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."::: |
| 73 | + |
| 74 | +1. Select the custom connector operation that you want to call from your flow. |
| 75 | + |
| 76 | +1. Provide the necessary operation information to pass to the custom connector. |
| 77 | + |
| 78 | +1. On the Power Apps editor toolbar, select **Save** to save your changes. |
| 79 | + |
| 80 | +1. In the [Azure portal](https://portal.azure.com), find and open the logic app resource that you exported. |
| 81 | + |
| 82 | +1. Confirm that your logic app workflow works as expected with your Power Apps flow. |
| 83 | + |
| 84 | +## Delete logic app custom connector from Power Apps |
| 85 | + |
| 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**. |
| 87 | + |
| 88 | +1. In the list, find your custom connector, and select the ellipses (**...**) button, and then select **Delete**. |
| 89 | + |
| 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."::: |
| 91 | + |
| 92 | +1. To confirm deletion, select **OK**. |
| 93 | + |
| 94 | +## Next steps |
| 95 | + |
| 96 | +* [Managed connectors for Azure Logic Apps](/connectors/connector-reference/connector-reference-logicapps-connectors) |
| 97 | +* [Built-in connectors for Azure Logic Apps](../connectors/built-in.md) |
0 commit comments