Skip to content

Latest commit

 

History

History
154 lines (87 loc) · 7.7 KB

call-from-power-automate-power-apps.md

File metadata and controls

154 lines (87 loc) · 7.7 KB
title description services ms.suite ms.reviewer ms.topic ms.date
Call logic apps from Power Automate and Power Apps
Call logic apps from Microsoft Power Automate flows by exporting logic apps as connectors.
logic-apps
integration
estfan, logicappspm
conceptual
10/05/2020

Call logic apps from Power Automate and Power Apps

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.

Prerequisites

  • An Azure subscription. If you don't have an Azure subscription, sign up for a free Azure account.

  • A Power Automate or Power Apps license.

  • A logic app with a request trigger to export.

  • 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.

  1. Sign in to the Azure portal.

  2. In the Azure portal search box, enter Logic Apps. In the results, under Services, select Logic Apps.

  3. Select the logic app that you want to export.

  4. From your logic app's menu, select Export.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/export-logic-app.png" alt-text="Screenshot of logic app's page in Azure portal, showing menu with 'Export' button selected.":::

  5. 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.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/export-logic-app2.png" alt-text="Screenshot of export pane for logic app, showing required fields for custom connector name and environment.":::

  6. 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:

  1. Sign in to Power Automate.

  2. From the Power Automate home page menu, select My flows.

  3. On the Flows page, select the flow that you want to connect to your logic app.

  4. From your flow page's menu, select Edit.

  5. In the flow editor, select + New step.

  6. 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.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/power-automate-custom-connector-action.png" alt-text="Screenshot of Power Automate flow editor, showing a new step being added for the custom connector and available actions.":::

  7. Select the action that you want to take with your logic app connector.

  8. Provide the information that the action passes to the logic app connector.

  9. To save your changes, from the Power Automate editor menu, select Save.

  10. Sign in to the Azure portal.

  11. In the Logic Apps service, find the logic app that you exported.

  12. Confirm that your logic app works the way that you expect in your Power Automate flow.

Delete logic app connector from Power Automate

  1. Sign in to Power Automate.

  2. On the Power Automate home page, select Data > Custom connectors in the menu.

  3. In the list, find your custom connector, and select the ellipses (...) button > Delete.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/delete-custom-connector.png" alt-text="Screenshot of Power Automate 'Custom connectors' page, showing logic app's custom connector management buttons.":::

  4. 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:

  1. Sign in to Power Apps.

  2. On the Power Apps home page, select Flows in the menu.

  3. On the Flows page, select the flow that you want to connect to your logic app.

  4. On your flow's page, select Edit in the flow's menu.

  5. In the flow editor, select the + New step button.

  6. 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.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/power-apps-custom-connector-action.png" alt-text="Screenshot of Power Apps flow editor, showing a new step being added for the custom connector and available actions.":::

  7. Select the action that you want to take with the connector.

  8. Configure what information your action passes to the logic app connector.

  9. In the Power Apps editor menu, select Save to save your changes.

  10. Sign in to the Azure portal.

  11. In the Logic Apps service, find the logic app that you exported.

  12. Confirm that your logic app is functioning as intended with your Power Apps flow.

Delete logic app connector from Power Apps

  1. Sign in to Power Apps.

  2. On the Power Apps home page, select Data > Custom Connectors in the menu.

  3. In the list, find your custom connector, and select the ellipses (...) button > Delete.

    :::image type="content" source="./media/call-logic-apps-from-power-automate-power-apps/delete-custom-connector.png" alt-text="Screenshot of Power Apps 'Custom connectors' page, showing logic app's custom connector management buttons.":::

  4. To confirm the deletion, select OK.

Next steps