Skip to content

Commit 83b835e

Browse files
committed
Update art and steps
1 parent 2113c60 commit 83b835e

15 files changed

+17
-17
lines changed
15.3 KB
Loading

articles/logic-apps/logic-apps-azure-functions.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Before you can create an Azure function starting from inside your logic app by u
109109

110110
* Between existing steps in your logic app's workflow, move your mouse over the arrow, select the plus (+) sign, and then select **Add an action**.
111111

112-
1. In the search box, enter "azure functions" as your filter. From the actions list, select this action: **Choose an Azure function**
112+
1. In the search box, enter "azure functions" as your filter. From the actions list, select the **Choose an Azure function** action, for example:
113113

114114
![Find "Azure functions"](./media/logic-apps-azure-functions/find-azure-functions-action.png)
115115

@@ -121,26 +121,26 @@ Before you can create an Azure function starting from inside your logic app by u
121121

122122
1. In the **Function name** box, provide a name for your function.
123123

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**.
125125

126-
![Define your function](./media/logic-apps-azure-functions/function-definition.png)
126+
For example:
127127

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+
![Define your function](./media/logic-apps-azure-functions/add-code-function-definition.png)
129129

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:
131131

132-
For example, to reference the `content` property inside the `context` object, use this syntax:
132+
`context.body.<property-name>`
133133

134-
`context.body.content`
134+
For example, to reference the `content` property inside the `context` object, use this syntax:
135135

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`
137137

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`.
142139

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.
144144
145145
1. In the **Request Body** box, provide your function's input, which must be formatted as a JavaScript Object Notation (JSON) object.
146146

@@ -164,7 +164,7 @@ To call existing Azure functions from your logic apps, you can add Azure functio
164164

165165
1. Under the step where you want to add the function, select **New step**.
166166

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

169169
![Find "Azure functions"](./media/logic-apps-azure-functions/find-azure-functions-action.png)
170170

articles/logic-apps/logic-apps-scenario-function-sb-trigger.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ You can use [Azure Functions](../azure-functions/functions-overview.md) to trigg
2727

2828
## Create logic app
2929

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

3232
1. Sign in to the [Azure portal](https://portal.azure.com), and create blank logic app.
3333

3434
If you're new to logic apps, review [Quickstart: Create your first logic app](../logic-apps/quickstart-create-first-logic-app-workflow.md).
3535

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

3838
![Select trigger](./media/logic-apps-scenario-function-sb-trigger/when-http-request-received-trigger.png)
3939

@@ -148,4 +148,4 @@ Next, create the function that acts as the trigger and listens to the queue.
148148

149149
## Next steps
150150

151-
[Call, trigger, or nest workflows by using HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md)
151+
* [Call, trigger, or nest workflows by using HTTP endpoints](../logic-apps/logic-apps-http-endpoint.md)
20.6 KB
Loading
11.9 KB
Loading
Binary file not shown.
3.31 KB
Loading
8.2 KB
Loading
11 KB
Loading
1.15 KB
Loading

0 commit comments

Comments
 (0)