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
+33-31Lines changed: 33 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,6 +193,39 @@ For example, to run the Office 365 Outlook **Send an email** action after the Ex
193
193
194
194
<aname="change-run-after-designer"></a>
195
195
196
+
### Change "run after" behavior in the designer
197
+
198
+
1. In the [Azure portal](https://portal.azure.com), open the logic app workflow in the designer.
199
+
200
+
1. On the designer, select the action shape. On the details pane, select **Settings**.
201
+
202
+
1. The **Run After** section in the **Settings** pane shows the predecessor action for the currently selected action.
203
+
204
+

205
+
206
+
207
+
1. Expand the predecessor action node to view all the "run after" statuses.
208
+
209
+
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.
210
+
211
+

212
+
213
+
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.
214
+
215
+
The following example selects **has failed**.
216
+
217
+

218
+
219
+
1. To specify that the current action runs whether the predecessor action is marked as **Failed**, **Skipped**, or **TimedOut**, select the other statuses.
220
+
221
+

222
+
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.
224
+
225
+

226
+
227
+
1. When you're ready, select **Done**.
228
+
196
229
---
197
230
198
231
### Change "run after" behavior in the code view editor
@@ -268,37 +301,6 @@ For limits on scopes, see [Limits and config](logic-apps-limits-and-config.md).
268
301
269
302
<aname="get-results-from-failures"></a>
270
303
271
-
### Use "scope" in the designer
272
-
273
-
#### Step 1: Open the Logic App Designer
274
-
* Navigate to your Logic App in the Azure portal.
275
-
* Click on Edit to open the Logic App Designer.
276
-
277
-
#### Step 2: Add a Scope Action
278
-
* In the Logic App Designer, click + New Step where you want to add the Scope.
279
-
* In the search bar, type Scope and select the Scope action.
280
-
* A container will appear where you can add multiple actions.
281
-
282
-

283
-
284
-
285
-
#### Step 3: Add Actions to the Scope
286
-
* Inside the Scope container, click Add an action.
287
-
* Add the actions you want to group. For example:
288
-
* Retrieve data from an API.
289
-
* Process the data.
290
-
* Save the data to a database.
291
-
* Repeat the process to include all related actions.
292
-
293
-

294
-
295
-
#### Step 4: Define "Run After" Conditions
296
-
* Switch the "Settings" tab of the "Scope"
297
-
* Configure the "Run after" section for your cases
298
-
* Scope will be triggered after the selected actions
299
-
300
-

301
-
302
304
### Get context and results for failures
303
305
304
306
Although catching failures from a scope is useful, you might also want more context to help you learn the exact failed actions plus any errors or status codes. The [`result()` function](workflow-definition-language-functions-reference.md#result) returns the results from the top-level actions in a scoped action. This function accepts the scope's name as a single parameter, and returns an array with the results from those top-level actions. These action objects have the same attributes as the attributes returned by the `actions()` function, such as the action's start time, end time, status, inputs, correlation IDs, and outputs.
0 commit comments