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/error-exception-handling.md
+44-45Lines changed: 44 additions & 45 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,67 +195,34 @@ For example, to run the Office 365 Outlook **Send an email** action after the Ex
195
195
196
196
### Change "run after" behavior in the designer
197
197
198
-
### [Standard](#tab/standard)
199
-
200
198
1. In the [Azure portal](https://portal.azure.com), open the logic app workflow in the designer.
201
199
202
-
1. On the designer, select the action shape. On the details pane, select **Run After**.
200
+
1. On the designer, select the action shape. On the details pane, select **Settings**.
203
201
204
-

202
+
The **Run After** section in the **Settings** pane shows the predecessor action for the currently selected action.
205
203
206
-
The **Run After** pane shows the predecessor action for the currently selected action.
204
+
:::image type="content" source="media/error-exception-handling/configure-run-after.png" alt-text="Screenshot shows workflow designer and current action details pane with selected Settings tab.":::
207
205
208
-

209
206
210
-
1. Expand the predecessor action node to view all the "run after" statuses.
207
+
1. Expand the predecessor action to view all the possible predecessor statuses.
211
208
212
-
By default, the "run after" status is set to **is successful**. So, the predecessor action must run successfully before the currently selected action can run.
209
+
By default, the "run after" status is set to **Is successful**. So, the predecessor action must successfully finish before the currently selected action can run.
213
210
214
-

211
+
:::image type="content" source="media/error-exception-handling/change-run-after-status.png" alt-text="Screenshot shows current action and its default run after status set to Is successful.":::
215
212
216
-
1.Change the "run after" behavior to the status that you want. Make sure that you first select an option before you clear the default option. You have to always have at least one option selected.
213
+
1.To change the "run after" behavior to the statuses that you want, select those statuses. Make sure that you first select an option before you clear the default option. You have to always have at least one option selected.
217
214
218
-
The following example selects **has failed**.
215
+
The following example selects **Has failed**.
219
216
220
-

217
+
:::image type="content" source="media/error-exception-handling/failed-run-after-status.png" alt-text="Screenshot shows current action with run after behavior set to Has failed.":::
221
218
222
-
1. To specify that the current action runs whether the predecessor action is marked as **Failed**, **Skipped**, or **TimedOut**, select the other statuses.
219
+
1. To specify that the current action runs when the predecessor action completes with **Failed**, **Skipped**, or **TimedOut** status, select these statuses.
223
220
224
-

221
+
:::image type="content" source="media/error-exception-handling/run-after-multiple-statuses.png" alt-text="Screenshot shows current action and multiple selected run after statuses.":::
225
222
226
223
1. To require that more than one predecessor action runs, each with their own "run after" statuses, expand the **Select actions** list. Select the predecessor actions that you want, and specify their required "run after" statuses.
227
224
228
-

229
-
230
-
1. When you're ready, select **Done**.
231
-
232
-
### [Consumption](#tab/consumption)
233
-
234
-
1. In the [Azure portal](https://portal.azure.com), open the logic app workflow in the designer.
235
-
236
-
1. On the action shape, open the ellipses menu (**...**), and select **Configure run after**.
237
-
238
-

239
-
240
-
The action shape expands and shows the predecessor action for the currently selected action.
241
-
242
-

243
-
244
-
1. Expand the predecessor action node to view all the "run after" statuses.
245
-
246
-
By default, the "run after" status is set to **is successful**. So, the predecessor action must run successfully before the currently selected action can run.
247
-
248
-

249
-
250
-
1. Change the "run after" behavior to the status that you want. Make sure that you first select an option before you clear the default option. You have to always have at least one option selected.
251
-
252
-
The following example selects **has failed**.
253
-
254
-

255
-
256
-
1. To specify that the current action runs whether the predecessor action is marked as **Failed**, **Skipped**, or **TimedOut**, select the other statuses.
257
-
258
-

225
+
:::image type="content" source="media/error-exception-handling/multiple-predecessor-actions.png" alt-text="Screenshot shows current action and available multiple predecessor actions.":::
259
226
260
227
1. When you're ready, select **Done**.
261
228
@@ -332,6 +299,38 @@ To catch exceptions in a **Failed** scope and run actions that handle those erro
332
299
333
300
For limits on scopes, see [Limits and config](logic-apps-limits-and-config.md).
334
301
302
+
### Set up a scope with "run after" for exception handling
303
+
304
+
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
305
+
306
+
Your workflow must already have a trigger that starts the workflow.
307
+
308
+
1. On the designer, [follow these generic steps to add a **Control** action named **Scope** to your workflow](/azure/logic-apps/create-workflow-with-trigger-or-action#add-action).
309
+
310
+
1. In the **Scope** action, [follow these generic steps to the add actions to run](/azure/logic-apps/logic-apps-control-flow-run-steps-group-scopes#add-steps-to-scope), for example:
311
+
312
+
:::image type="content" source="media/error-exception-handling/add-actions-into-scope.png" alt-text="Screenshot shows workflow designer with actions grouped inside the scope.":::
313
+
314
+
The following list shows some example actions that you might include inside a **Scope** action:
315
+
316
+
- Get data from an API.
317
+
- Process the data.
318
+
- Save the data to a database.
319
+
320
+
1. Now define the "run after" rules for running the actions in the scope.
321
+
322
+
1. On the designer, select the **Scope** title. When the scope's information pane opens, select **Settings**.
323
+
324
+
1. If you have more than one preceding action in the workflow, from the **Select actions** list, select the action after which you want to run the scoped actions.
325
+
326
+
1. For the selected action, select all the action statuses that can run the scoped actions.
327
+
328
+
In other words, any of the chosen statuses that result from the selected action cause the actions in the scope to run.
329
+
330
+
In the following example, the scoped actions run after the **HTTP** action completes with any of the selected statuses:
331
+
332
+
:::image type="content" source="media/error-exception-handling/set-run-after-in-scope.png" alt-text="Screenshot shows scope action's Settings tab, run after section, and selected action statuses that run the scoped actions.":::
0 commit comments