Call logic apps from Power Automate and Power Apps
Applies to: Azure Logic Apps (Consumption)
To call your logic apps from Microsoft Power Automate and Microsoft Power Apps, you can export your logic apps as connectors. When you expose a logic app as a custom connector in a Power Automate or Power Apps environment, you can then call your logic app from flows there.
If you want to migrate your flow from Power Automate or Power to Logic Apps instead, see Export flows from Power Automate and deploy to Azure Logic Apps.
Note
Not all Power Automate connectors are available in Azure Logic Apps. You can migrate only Power Automate flows that have the equivalent connectors in Azure Logic Apps. For example, the Button trigger, the Approval connector, and Notification connector are specific to Power Automate. Currently, OpenAPI-based flows in Power Automate aren't supported for export and deployment as logic app templates.
To find which Power Automate connectors don't have Logic Apps equivalents, see Power Automate connectors.
To find which Logic Apps connectors don't have Power Automate equivalents, see Logic Apps connectors.
Prerequisites
An Azure account and subscription. If you don't have an Azure subscription, sign up for a free Azure account.
A Power Automate or Power Apps license.
A Consumption logic app workflow with a request trigger to export.
Note
The Export capability is available only for Consumption logic app workflows in multi-tenant Azure Logic Apps.
A flow in Power Automate or Power Apps from which you want to call your logic app.
Export your logic app as a custom connector
Before you can call your logic app from Power Automate or Power Apps, you must first export your logic app as a custom connector.
Sign in to the Azure portal.
In the Azure portal search box, enter
Logic Apps
. In the results, under Services, select Logic Apps.Select the logic app that you want to export.
From your logic app's menu, select Export.
On the Export pane, for Name, enter a name for the custom connector to your logic app. From the Environment list, select the Power Automate or Power Apps environment from which you want to call your logic app. When you're done, select OK.
To confirm that your logic app was successfully exported, check the notifications pane.
Exporting errors
Here are errors that might happen when you export your logic app as a custom connector and their suggested solutions:
Failed to get environments. Make sure your account is configured for Power Automate, then try again.: Check that your Azure account has a Power Automate plan.
The current Logic App cannot be exported. To export, select a Logic App that has a request trigger.: Check that your logic app begins with a request trigger.
Connect to your logic app from Power Automate
To connect to the logic app that you exported with your Power Automate flow:
Sign in to Power Automate.
From the Power Automate home page menu, select My flows.
On the Flows page, select the flow that you want to connect to your logic app.
From your flow page's menu, select Edit.
In the flow editor, select + New step.
Under Choose an action, in the search box, enter the name of your logic app connector. Optionally, to show only the custom connectors in your environment, filter the results by selecting the Custom tab.
Select the action that you want to take with your logic app connector.
Provide the information that the action passes to the logic app connector.
To save your changes, from the Power Automate editor menu, select Save.
Sign in to the Azure portal.
In the Logic Apps service, find the logic app that you exported.
Confirm that your logic app works the way that you expect in your Power Automate flow.
Delete logic app connector from Power Automate
Sign in to Power Automate.
On the Power Automate home page, select Data > Custom connectors in the menu.
In the list, find your custom connector, and select the ellipses (...) button > Delete.
To confirm the deletion, select OK.
Connect to your logic app from Power Apps
To connect to the logic app that you exported with your Power Apps flow:
Sign in to Power Apps.
On the Power Apps home page, select Flows in the menu.
On the Flows page, select the flow that you want to connect to your logic app.
On your flow's page, select Edit in the flow's menu.
In the flow editor, select the + New step button.
Under Choose an action in the new step, enter the name of your logic app connector in the search box. Optionally, filter the results by the Custom tab to see only custom connectors in your environment.
Select the action that you want to take with the connector.
Configure what information your action passes to the logic app connector.
In the Power Apps editor menu, select Save to save your changes.
Sign in to the Azure portal.
In the Logic Apps service, find the logic app that you exported.
Confirm that your logic app is functioning as intended with your Power Apps flow.
Delete logic app connector from Power Apps
Sign in to Power Apps.
On the Power Apps home page, select Data > Custom Connectors in the menu.
In the list, find your custom connector, and select the ellipses (...) button > Delete.
To confirm the deletion, select OK.
Next steps
Feedback
Submit and view feedback for