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/logic-apps/logic-apps-control-flow-run-steps-group-scopes.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,9 +46,9 @@ First, create this sample logic app so that you can add a scope later:
46
46
47
47
You can save your logic app at any time, so save your work often.
48
48
49
-
1. Sign in to the <ahref="https://portal.azure.com"target="_blank">Azure portal</a>, if you haven't already. Create a blank logic app.
49
+
1. Sign in to the <ahref="https://portal.azure.com"target="_blank">Azure portal</a>. Create a blank logic app.
50
50
51
-
1. Add the **Schedule - Recurrence** trigger with these settings: **Interval** = "1" and **Frequency** = "Minute"
51
+
1. Add the **Schedule - Recurrence** trigger with these settings: **Interval** = **1** and **Frequency** = **Minute**.
52
52
53
53
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/recurrence.png" alt-text="Screenshot shows a Schedule - Recurrence trigger.":::
54
54
@@ -76,17 +76,17 @@ You can save your logic app at any time, so save your work often.
76
76
|**Waypoint 1**| <*start*> | Enter your route's origin. |
77
77
|**Waypoint 2**| <*end*> | Enter your route's destination. |
78
78
|**Avoid**| None | Enter items to avoid on your route, such as highways, tolls, and so on. For possible values, see [Calculate a route](/bingmaps/rest-services/routes/calculate-a-route). |
79
-
|**Optimize**| timeWithTraffic | Select a parameter to optimize your route, such as distance, time with current traffic information, and so on. This example uses this value: "timeWithTraffic"|
80
-
|**Distance unit**| <*your-preference*> | Enter the unit of distance to calculate your route. This example uses this value: "Mile"|
81
-
|**Travel mode**| Driving | Enter the mode of travel for your route. This example uses this value "Driving"|
79
+
|**Optimize**| timeWithTraffic | Select a parameter to optimize your route, such as distance, time with current traffic information, and so on. This example uses this value: *timeWithTraffic*.|
80
+
|**Distance unit**| <*your-preference*> | Enter the unit of distance to calculate your route. This example uses this value*Mile*.|
81
+
|**Travel mode**| Driving | Enter the mode of travel for your route. This example uses this value *Driving*.|
82
82
|**Transit Date-Time**| None | Applies to transit mode only. |
1.[Add a condition](../logic-apps/logic-apps-control-flow-conditional-statement.md) that checks whether the current travel time with traffic exceeds a specified time. For this example, follow these steps:
86
86
87
-
1. Rename the condition with this description: **If traffic time is more than specified time**
87
+
1. Rename the condition with this description: **If traffic time is more than specified time**.
88
88
89
-
1. In the leftmost column, select inside the **Choose a value** box so the dynamic content list appears. From that list, select the **Travel Duration Traffic** field, which is in seconds.
89
+
1. In the leftmost column, select inside **Choose a value** so the dynamic content list appears. From that list, select the **Travel Duration Traffic** field, which is in seconds.
90
90
91
91
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/build-condition.png" alt-text="Screenshot shows a condition selected from dynamic content.":::
92
92
@@ -98,7 +98,7 @@ You can save your logic app at any time, so save your work often.
98
98
99
99
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/finished-condition.png" alt-text="Screenshot shows the conditional after you selected the values.":::
100
100
101
-
1. In the **True** branch, add a "send email" action for your email provider. Set up this action by following the steps under this image:
101
+
1. In the **True** branch, add a send email action for your email provider. Set up this action by following the steps under this image:
102
102
103
103
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/send-email.png" alt-text="Screenshot shows adding a Send an email action to True branch.":::
104
104
@@ -112,21 +112,21 @@ You can save your logic app at any time, so save your work often.
112
112
113
113
`Travel time:`
114
114
115
-
While your cursor appears in the **Body** field, the dynamic content list stays open so that you can select any parameters that are available at this point.
115
+
While your cursor appears in the **Body** field, the dynamic content list stays open. You can select any parameters that are available at this point.
116
116
117
117
1. In the dynamic content list, select **Expression**.
118
118
119
119
1. Find and select the **div()** function. Put your cursor in inside the function's parentheses.
120
120
121
-
1. While your cursor is inside the function's parentheses, select **Dynamic content** so that the dynamic content list appears.
121
+
1. While your cursor is inside the function's parentheses, select **Dynamic content**. The dynamic content list appears.
122
122
123
123
1. From the **Get route** section, select the **Traffic Duration Traffic** field.
1. After the field resolves to JSON format, add a **comma** (`,`) followed by the number `60` so that you convert the value in **Traffic Duration Traffic** from seconds to minutes.
@@ -144,7 +144,7 @@ You can save your logic app at any time, so save your work often.
144
144
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/send-email-4.png" alt-text="Screenshot shows your finished Body field.":::
145
145
<!-- markdownlint-enable MD038 -->
146
146
147
-
1. Save your logic app.
147
+
1. Save your logic app workflow.
148
148
149
149
Next, add a scope so that you can group specific actions and evaluate their status.
150
150
@@ -158,7 +158,7 @@ Next, add a scope so that you can group specific actions and evaluate their stat
158
158
159
159
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/add-scope.png" alt-text="Screenshot shows adding a scope to the workflow.":::
160
160
161
-
1. In the search box, enter "scope" as your filter. Select the **Scope** action.
161
+
1. In the search box, enter *scope*. Select the **Scope** action.
162
162
163
163
## Add steps to scope
164
164
@@ -167,11 +167,11 @@ Next, add a scope so that you can group specific actions and evaluate their stat
167
167
- **Get route**
168
168
- **If traffic time is more than specified time**, which includes both the **true** and **false** branches
169
169
170
-
Your logic app now looks like this example:
170
+
Your logic app workflow now looks like this example:
171
171
172
172
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/scope-added.png" alt-text="Screenshot shows workflow with steps added to the scope.":::
173
173
174
-
1. Under the scope, add a condition that checks the scope's status. Rename the condition with this description: **If scope failed**
174
+
1. Under the scope, add a condition that checks the scope's status. Rename the condition with this description: **If scope failed**.
175
175
176
176
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/add-condition-check-scope-status.png" alt-text="Screenshot shows adding a condition to check scope status.":::
177
177
@@ -203,13 +203,13 @@ Next, add a scope so that you can group specific actions and evaluate their stat
1. When you're finished, select **Done**. The condition now shows an "information" icon.
206
+
1. When you're finished, select **Done**. The condition now shows an information icon.
207
207
208
208
1. In the **True** and **False** branches, add the actions that you want to perform based on each scope status, for example, send an email or message.
209
209
210
210
:::image type="content" source="./media/logic-apps-control-flow-run-steps-group-scopes/handle-true-false-branches.png" alt-text="Screenshot shows adding actions to take based on scope status.":::
211
211
212
-
1. Save your logic app.
212
+
1. Save your logic app workflow.
213
213
214
214
Your finished logic app now looks like this example:
0 commit comments