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
@@ -121,26 +121,26 @@ Before you can create an Azure function starting from inside your logic app by u
121
121
122
122
1. In the **Function name** box, provide a name for your function.
123
123
124
-
1. In the **Code** box, add your code to the function template, including the response and payload that you want returned to your logic app after your function finishes running.
124
+
1. In the **Code** box, add your code to the function template, including the response and payload that you want returned to your logic app after your function finishes running. When you're done, select **Create**.
125
125
126
-

126
+
For example:
127
127
128
-
In the template's code, the *`context` object* refers to the message that your logic app sends through the **Request Body** field in a later step. To access the `context` object's properties from inside your function, use this syntax:
128
+

129
129
130
-
`context.body.<property-name>`
130
+
In the template's code, the *`context` object* refers to the message that your logic app sends through the **Request Body** field in a later step. To access the `context` object's properties from inside your function, use this syntax:
131
131
132
-
For example, to reference the `content`property inside the `context` object, use this syntax:
132
+
`context.body.<property-name>`
133
133
134
-
`context.body.content`
134
+
For example, to reference the `content` property inside the `context` object, use this syntax:
135
135
136
-
The template code also includes an `input` variable, which stores the value from the `data` parameter so your function can perform operations on that value. Inside JavaScript functions, the `data` variable is also a shortcut for `context.body`.
136
+
`context.body.content`
137
137
138
-
> [!NOTE]
139
-
> The `body` property here applies to the `context` object and
140
-
> isn't the same as the **Body** token from an action's output,
141
-
> which you might also pass to your function.
138
+
The template code also includes an `input` variable, which stores the value from the `data` parameter so your function can perform operations on that value. Inside JavaScript functions, the `data` variable is also a shortcut for `context.body`.
142
139
143
-
1. When you're done, select **Create**.
140
+
> [!NOTE]
141
+
> The `body` property here applies to the `context` object and
142
+
> isn't the same as the **Body** token from an action's output,
143
+
> which you might also pass to your function.
144
144
145
145
1. In the **Request Body** box, provide your function's input, which must be formatted as a JavaScript Object Notation (JSON) object.
146
146
@@ -164,7 +164,7 @@ To call existing Azure functions from your logic apps, you can add Azure functio
164
164
165
165
1. Under the step where you want to add the function, select **New step**.
166
166
167
-
1. Under **Choose an action**, in the search box, enter "azure functions" as your filter. From the actions list, select this action: **Choose an Azure function**
167
+
1. Under **Choose an action**, in the search box, enter "azure functions" as your filter. From the actions list, select the **Choose an Azure function** action.
Copy file name to clipboardExpand all lines: articles/logic-apps/logic-apps-scenario-function-sb-trigger.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,13 +27,13 @@ You can use [Azure Functions](../azure-functions/functions-overview.md) to trigg
27
27
28
28
## Create logic app
29
29
30
-
For this scenario, you have a function running each logic app that you want to trigger. First, create a logic app that starts with an HTTP request trigger. The function calls that endpoint whenever a queue message is received.
30
+
For this scenario, you have a function running each logic app that you want to trigger. First, create a logic app that starts with an HTTP request trigger. The function calls that endpoint whenever a queue message is received.
31
31
32
32
1. Sign in to the [Azure portal](https://portal.azure.com), and create blank logic app.
33
33
34
34
If you're new to logic apps, review [Quickstart: Create your first logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md).
35
35
36
-
1. In the search box, enter "http request". From the triggers list, select this trigger: **When a HTTP request is received**
36
+
1. In the search box, enter `http request`. From the triggers list, select the **When a HTTP request is received** trigger.
0 commit comments