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
description: Learn how to invoke business processes from your App Service app. Send emails, tweets, and Facebook posts, add to mailing lists, and much more.
4
4
5
5
ms.topic: tutorial
6
-
ms.date: 04/06/2020
6
+
ms.date: 04/08/2020
7
7
ms.custom: mvc
8
8
---
9
9
10
10
# Tutorial: Send email and invoke other business processes from App Service
11
11
12
-
In this tutorial, you learn how to integrate your App Service app with the business processes you need. This is a common to web app scenarios, such as:
12
+
In this tutorial, you learn how to integrate your App Service app with your business processes. This is common to web app scenarios, such as:
13
13
14
14
- Send confirmation email for a transaction
15
15
- Add user to Facebook group
16
16
- Connect to third-party systems like SAP, SalesForce, etc.
17
17
- Exchange standard B2B messages
18
18
19
-
In this tutorial, you send emails from your App Service app using Gmail using [Azure Logic Apps](../logic-apps/logic-apps-overview.md). There are other ways to send emails from a web app, such as SMTP configuration provided by your language framework. However, Logic Apps brings a lot more power to your App Service app without adding complexity to your code. Logic Apps provides a simple configuration interface for the most popular business integrations, and your app can call them anytime with an HTTP request.
19
+
In this tutorial, you send emails with Gmail from your App Service app by using [Azure Logic Apps](../logic-apps/logic-apps-overview.md). There are other ways to send emails from a web app, such as SMTP configuration provided by your language framework. However, Logic Apps brings a lot more power to your App Service app without adding complexity to your code. Logic Apps provides a simple configuration interface for the most popular business integrations, and your app can call them anytime with an HTTP request.
20
20
21
21
## Prerequisite
22
22
@@ -71,9 +71,9 @@ Deploy an app with the language framework of your choice to App Service. To foll
71
71
The schema is now generated for the request data you want. In practice, you can just capture the actual request data your application code generates and let Azure generate the JSON schema for you.
72
72
1. At the top of the Logic Apps Designer, select **Save**.
73
73
74
-
You can now see the URL of your HTTP request trigger.
74
+
You can now see the URL of your HTTP request trigger. Select the copy icon to copy it for later use.
This HTTP request definition is a trigger to anything you want to do in this logic app, be it Gmail or anything else. Later you will invoke this URL in your App Service app. For more information on the request trigger, see the [HTTP request/response reference](../connectors/connectors-native-reqres.md).
79
79
@@ -121,7 +121,9 @@ Deploy an app with the language framework of your choice to App Service. To foll
121
121
122
122
## Add HTTP request code to app
123
123
124
-
Make sure you have copied the URL of the HTTP request trigger from earlier. First, create an app setting in your App Service app. In the [Cloud Shell](https://shell.azure.com), you can do it with the following command (replace *\<app-name>*, *\<resource-group-name>*, and *\<logic-app-url>*):
124
+
Make sure you have copied the URL of the HTTP request trigger from earlier. Because it contains sensitive information, it's best practice that you don't put it into the code directly. With App Service, you can reference it as an environment variable instead, using app settings.
125
+
126
+
In the [Cloud Shell](https://shell.azure.com), create the app setting with the following command (replace *\<app-name>*, *\<resource-group-name>*, and *\<logic-app-url>*):
125
127
126
128
```azurecli-interactive
127
129
az webapp config appsettings set --name <app-name> --resource-group <resource-group-name> --settings LOGIC_APP_URL="<your-logic-app-url>"
0 commit comments