Skip to content

Commit bb16a7b

Browse files
authored
Merge pull request #125154 from agunay-munichre/main
Update 'Run After' Section & Add 'Scope With Run After' Section
2 parents bf654a7 + 83bf3fb commit bb16a7b

19 files changed

+44
-45
lines changed

articles/logic-apps/error-exception-handling.md

Lines changed: 44 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -195,67 +195,34 @@ For example, to run the Office 365 Outlook **Send an email** action after the Ex
195195

196196
### Change "run after" behavior in the designer
197197

198-
### [Standard](#tab/standard)
199-
200198
1. In the [Azure portal](https://portal.azure.com), open the logic app workflow in the designer.
201199

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

204-
![Screenshot showing Standard workflow designer and current action details pane with "Run After" selected.](./media/error-exception-handling/configure-run-after-standard.png)
202+
The **Run After** section in the **Settings** pane shows the predecessor action for the currently selected action.
205203

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.":::
207205

208-
![Screenshot showing Standard designer, current action, and "run after" status for predecessor action.](./media/error-exception-handling/predecessor-action-standard.png)
209206

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

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

214-
![Screenshot showing Standard designer, current action, and default "run after" set to "is successful".](./media/error-exception-handling/change-run-after-status-standard.png)
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.":::
215212

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

218-
The following example selects **has failed**.
215+
The following example selects **Has failed**.
219216

220-
![Screenshot showing Standard designer, current action, and "run after" set to "has failed".](./media/error-exception-handling/failed-run-after-status-standard.png)
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.":::
221218

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

224-
![Screenshot showing Standard designer, current action, and multiple "run after" statuses selected.](./media/error-exception-handling/run-after-multiple-statuses-standard.png)
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.":::
225222

226223
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.
227224

228-
![Screenshot showing Standard designer, current action, and multiple predecessor actions available.](./media/error-exception-handling/multiple-predecessor-actions-standard.png)
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-
![Screenshot showing Consumption workflow designer and current action with ellipses and "Configure run after" selected.](./media/error-exception-handling/configure-run-after-consumption.png)
239-
240-
The action shape expands and shows the predecessor action for the currently selected action.
241-
242-
![Screenshot showing Consumption workflow designer, current action, and "run after" status for predecessor action.](./media/error-exception-handling/predecessor-action-consumption.png)
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-
![Screenshot showing Consumption designer, current action, and default "run after" set to "is successful".](./media/error-exception-handling/default-run-after-status-consumption.png)
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-
![Screenshot showing Consumption designer, current action, and "run after" set to "has failed".](./media/error-exception-handling/failed-run-after-status-consumption.png)
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-
![Screenshot showing Consumption designer, current action, and multiple "run after" statuses selected.](./media/error-exception-handling/run-after-multiple-statuses-consumption.png)
225+
:::image type="content" source="media/error-exception-handling/multiple-predecessor-actions.png" alt-text="Screenshot shows current action and available multiple predecessor actions.":::
259226

260227
1. When you're ready, select **Done**.
261228

@@ -332,6 +299,38 @@ To catch exceptions in a **Failed** scope and run actions that handle those erro
332299

333300
For limits on scopes, see [Limits and config](logic-apps-limits-and-config.md).
334301

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.":::
333+
335334
<a name="get-results-from-failures"></a>
336335

337336
### Get context and results for failures
22.9 KB
Loading
46.1 KB
Loading
41.5 KB
Loading

0 commit comments

Comments
 (0)