You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-functions/app-service-export-api-to-powerapps-and-flow.md
+13-17Lines changed: 13 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,15 +3,15 @@ title: Exporting an Azure-hosted API to PowerApps and Microsoft Flow
3
3
description: Overview of how to expose an API hosted in App Service to PowerApps and Microsoft Flow
4
4
5
5
ms.topic: conceptual
6
-
ms.date: 12/15/2017
6
+
ms.date: 04/28/2020
7
7
ms.reviewer: sunayv
8
8
9
9
---
10
10
# Exporting an Azure-hosted API to PowerApps and Microsoft Flow
11
11
12
12
[PowerApps](https://powerapps.microsoft.com/guided-learning/learning-introducing-powerapps/) is a service for building and using custom business apps that connect to your data and work across platforms. [Microsoft Flow](/learn/modules/get-started-with-flow/index) makes it easy to automate workflows and business processes between your favorite apps and services. Both PowerApps and Microsoft Flow come with a variety of built-in connectors to data sources such as Office 365, Dynamics 365, Salesforce, and more. In some cases, app and flow builders also want to connect to data sources and APIs built by their organization.
13
13
14
-
Similarly, developers that want to expose their APIs more broadly within an organization can make their APIs available to app and flow builders. This topic shows you how to export an API built with [Azure Functions](../azure-functions/functions-overview.md) or [Azure App Service](../app-service/overview.md). The exported API becomes a *custom connector*, which is used in PowerApps and Microsoft Flow just like a built-in connector.
14
+
Similarly, developers that want to expose their APIs more broadly within an organization can make their APIs available to app and flow builders. This article shows you how to export an API built with [Azure Functions](../azure-functions/functions-overview.md) or [Azure App Service](../app-service/overview.md). The exported API becomes a *custom connector*, which is used in PowerApps and Microsoft Flow just like a built-in connector.
15
15
16
16
> [!IMPORTANT]
17
17
> The API definition functionality shown in this article is only supported for [version 1.x of the Azure Functions runtime](functions-versions.md#creating-1x-apps) and App Services apps. Version 2.x of Functions integrates with API Management to create and maintain OpenAPI definitions. To learn more, see [Create an OpenAPI definition for a function with Azure API Management](functions-openapi-definition.md).
@@ -24,25 +24,21 @@ Before exporting an API, you must describe the API using an OpenAPI definition (
24
24
25
25
To export the API definition, follow these steps:
26
26
27
-
1. In the [Azure portal](https://portal.azure.com), navigate to your Azure Functions or another App Service application.
27
+
1. In the [Azure portal](https://portal.azure.com), navigate to your function app or an App Service application.
28
28
29
-
If using Azure Functions, select your function app, choose **Platform features**, and then**API definition**.
29
+
From the left menu, under **API**, select**API definition**.
30
30
31
-

31
+
:::image type="content" source="media/app-service-export-api-to-powerapps-and-flow/api-definition-function.png" alt-text="Azure Functions API definition":::
32
32
33
-
If using Azure App Service, select **API definition** from the settings list.
34
-
35
-

36
-
37
-
2. The **Export to PowerApps + Microsoft Flow** button should be available (if not, you must first create an OpenAPI definition). Click this button to begin the export process.
33
+
2. The **Export to PowerApps + Microsoft Flow** button should be available (if not, you must first create an OpenAPI definition). Select this button to begin the export process.
38
34
39
35

40
36
41
37
3. Select the **Export Mode**:
42
38
43
-
**Express** lets you create the custom connector from within the Azure portal. It requires that you are signed into PowerApps or Microsoft Flow and have permission to create connectors in the target environment. This is the recommended approach if these two requirements can be met. If using this mode, follow the [Use express export](#express) instructions below.
39
+
**Express** lets you create the custom connector from within the Azure portal. It requires that you are signed into PowerApps or Microsoft Flow and have permission to create connectors in the target environment. This approach is recommended if these two requirements can be met. If using this mode, follow the [Use express export](#express) instructions below.
44
40
45
-
**Manual** lets you export the API definition, which you then import using the PowerApps or Microsoft Flow portals. This is the recommended approach if the Azure user and the user with permission to create connectors are different people or if the connector needs to be created in another Azure tenant. If using this mode, follow the [Use manual export](#manual) instructions below.
41
+
**Manual** lets you export the API definition, which you then import using the PowerApps or Microsoft Flow portals. This approach is recommended if the Azure user and the user with permission to create connectors are different people, or if the connector needs to be created in another Azure tenant. If using this mode, follow the [Use manual export](#manual) instructions below.
@@ -62,7 +58,7 @@ To complete the export in **Express** mode, follow these steps:
62
58
|--------|------------|
63
59
|**Environment**|Select the environment that the custom connector should be saved to. For more information, see [Environments overview](https://powerapps.microsoft.com/tutorials/environments-overview/).|
64
60
|**Custom API Name**|Enter a name, which PowerApps and Microsoft Flow builders will see in their connector list.|
65
-
|**Prepare security configuration**|If required, provide the security configuration details needed to grant users access to your API. This example shows an API key. For more information, see [Specify authentication type](#auth) below.|
61
+
|**Prepare security configuration**|If necessary, provide the security configuration details needed to grant users access to your API. This example shows an API key. For more information, see [Specify authentication type](#auth) below.|
66
62
67
63

68
64
@@ -77,7 +73,7 @@ To complete the export in **Manual** mode, follow these steps:
77
73
78
74

79
75
80
-
2. If your API definition includes any security definitions, these are called out in step #2. During import, PowerApps and Microsoft Flow detects these and prompts for security information. Gather the credentials related to each definition for use in the next section. For more information, see [Specify authentication type](#auth) below.
76
+
2. If your API definition includes any security definitions, these definitions are called out in step #2. During import, PowerApps and Microsoft Flow detects these definitions and prompts for security information. Gather the credentials related to each definition for use in the next section. For more information, see [Specify authentication type](#auth) below.
81
77
82
78

83
79
@@ -153,15 +149,15 @@ For more information, see the Azure AD registration examples for [PowerApps](htt
153
149
The following configuration values are required:
154
150
-**Client ID** - the client ID of your connector Azure AD registration
155
151
-**Client secret** - the client secret of your connector Azure AD registration
156
-
-**Login URL** - the base URL for Azure AD. In Azure, this is typically `https://login.windows.net`.
157
-
-**Tenant ID** - the ID of the tenant to be used for the login. This should be "common" or the ID of the tenant in which the connector is created.
152
+
-**Login URL** - the base URL for Azure AD. In Azure, typically `https://login.windows.net`.
153
+
-**Tenant ID** - the ID of the tenant to be used for the login. This ID should be "common" or the ID of the tenant in which the connector is created.
158
154
-**Resource URL** - the resource URL of the Azure AD registration for your API
159
155
160
156
> [!IMPORTANT]
161
157
> If someone else will import the API definition into PowerApps and Microsoft Flow as part of the manual flow, you must provide them with the client ID and client secret of the *connector registration*, as well as the resource URL of your API. Make sure that these secrets are managed securely. **Do not share the security credentials of the API itself.**
162
158
163
159
### Generic OAuth 2.0
164
-
When using generic OAuth 2.0, you can integrate with any OAuth 2.0 provider. This allows you to work with custom providers that are not natively supported.
160
+
When using generic OAuth 2.0, you can integrate with any OAuth 2.0 provider. Doing so allows you to work with custom providers that are not natively supported.
0 commit comments