Skip to content

Commit 260cdb4

Browse files
Update the existing "run after" steps for deigner
1 parent 2414717 commit 260cdb4

17 files changed

+33
-31
lines changed

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

Lines changed: 33 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,39 @@ For example, to run the Office 365 Outlook **Send an email** action after the Ex
193193
194194
<a name="change-run-after-designer"></a>
195195

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+
![Screenshot showing the designer and current action details pane with "Settings" selected.](./media/error-exception-handling/configure-run-after.png)
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+
![Screenshot showing the designer, current action, and default "run after" set to "is successful".](./media/error-exception-handling/change-run-after-status.png)
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+
![Screenshot showing the designer, current action, and "run after" set to "has failed".](./media/error-exception-handling/failed-run-after-status.png)
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+
![Screenshot showing the designer, current action, and multiple "run after" statuses selected.](./media/error-exception-handling/run-after-multiple-statuses.png)
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+
![Screenshot showing the designer, current action, and multiple predecessor actions available.](./media/error-exception-handling/multiple-predecessor-actions.png)
226+
227+
1. When you're ready, select **Done**.
228+
196229
---
197230

198231
### 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).
268301

269302
<a name="get-results-from-failures"></a>
270303

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-
![Screenshot showing designer, searching scope in the 'Add an action menu'".](./media/error-exception-handling/search-scope.png)
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-
![Screenshot showing designer, adding different steps into the scope".](./media/error-exception-handling/add-actions-into-scope.png)
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-
![Screenshot showing designer, adding run after rules.](./media/error-exception-handling/set-run-after-in-scope.png)
301-
302304
### Get context and results for failures
303305

304306
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.
46.1 KB
Loading
41.5 KB
Loading
36.7 KB
Loading

0 commit comments

Comments
 (0)