Skip to content

Commit b8b6f64

Browse files
Merge pull request #300334 from cdpark/refresh-logic-apps-5
Feature 421950: Q&M: Azure Logic Apps - Freshness - Batch 5
2 parents c66f0b4 + 2ecd9cc commit b8b6f64

12 files changed

+169
-160
lines changed

articles/logic-apps/add-run-powershell-scripts.md

Lines changed: 62 additions & 54 deletions
Large diffs are not rendered by default.

articles/logic-apps/logic-apps-control-flow-conditional-statement.md

Lines changed: 48 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
---
2-
title: Add conditions to workflows
3-
description: Create conditions that control workflow actions in Azure Logic Apps.
2+
title: Add Conditions to Control Action Execution
3+
description: Learn how to create conditions so you can control action execution in workflows for Azure Logic Apps.
44
services: logic-apps
55
ms.suite: integration
66
ms.reviewer: estfan, azla
77
ms.topic: how-to
8-
ms.date: 08/08/2023
8+
ms.date: 06/25/2025
99
---
1010

11-
# Add conditions to control workflow actions in Azure Logic Apps
11+
# Add conditions to control workflow action execution in Azure Logic Apps
1212

1313
[!INCLUDE [logic-apps-sku-consumption-standard](../../includes/logic-apps-sku-consumption-standard.md)]
1414

@@ -21,57 +21,67 @@ You can add the **Condition** action to send email only when the new item includ
2121
>
2222
> If you want to specify more than two paths from which your workflow can choose
2323
> or condition criteria that's not restricted to only true or false, use a
24-
> [*switch action* instead](logic-apps-control-flow-switch-statement.md).
24+
> [**switch** action](logic-apps-control-flow-switch-statement.md) instead.
2525
2626
This guide shows how to add a condition to your workflow and use the result to help your workflow choose between two action paths.
2727

2828
## Prerequisites
2929

3030
* An Azure account and subscription. If you don't have a subscription, [sign up for a free Azure account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
3131

32-
* Basic knowledge about [logic app workflows](logic-apps-overview.md)
32+
* Basic knowledge about [logic app workflows](logic-apps-overview.md).
3333

3434
* To follow the example in this how-to guide, create either an [example Consumption logic app workflow](quickstart-create-example-consumption-workflow.md) or an [example Standard logic app workflow](create-single-tenant-workflows-azure-portal.md) and use either an Outlook.com account or a Microsoft work or school account.
3535

3636
## Add a condition
3737

3838
### [Consumption](#tab/consumption)
3939

40-
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
40+
1. In the [Azure portal](https://portal.azure.com), open your Consumption logic app resource.
4141

42-
1. [Follow these general steps to add the **Condition** action to your workflow](create-workflow-with-trigger-or-action.md?tabs=consumption#add-action).
42+
1. On the sidebar menu, under **Development Tools**, select the designer to open the blank workflow.
43+
44+
This example uses the **RSS** trigger named **When a feed item is published** to start the workflow. However, you can use any trigger that you want in your own scenarios.
45+
46+
1. Add the trigger that you want by following the [general steps to add a trigger](add-trigger-action-workflow.md?tabs=consumption#add-trigger).
47+
48+
1. Add the **Condition** action to your workflow by following the [general steps to add an action](add-trigger-action-workflow.md?tabs=consumption#add-action).
4349

4450
1. In the **Condition** action, follow these steps to build your condition:
4551

4652
1. In the left-side box named **Choose a value**, enter the first value or field that you want to compare.
4753

48-
When you select inside the **Choose a value** box, the dynamic content list opens automatically. From this list, you can select outputs from previous steps in your workflow.
54+
After you select inside the **Choose a value** box, the options to open the dynamic content list (lightning icon) or expression editor (formula icon) appear.
55+
56+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/open-dynamic-content-consumption.png" alt-text="Screenshot shows Azure portal, Consumption workflow designer, RSS trigger, and Condition action with information pane open, and dynamic content button selected.":::
57+
58+
1. Select the lightning icon to open the dynamic content list.
4959

50-
This example selects the RSS trigger output named **Feed summary**.
60+
From this list, you can select outputs from previous steps in your workflow. This example selects the **RSS** trigger output named **Feed summary**. If you don't see this option, you might need to select **See more**.
5161

52-
![Screenshot shows Azure portal, Consumption workflow designer. RSS trigger, and Condition action with criteria construction.](./media/logic-apps-control-flow-conditional-statement/edit-condition-consumption.png)
62+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/edit-condition-consumption.png" alt-text="Screenshot shows Azure portal, Consumption workflow designer, RSS trigger, and Condition action with criteria construction.":::
5363

54-
1. Open the middle list, select the operation to perform.
64+
1. From the middle box, select the operation to perform.
5565

5666
This example selects **contains**.
5767

5868
1. In the right-side box named **Choose a value**, enter the value or field that you want to compare with the first.
5969

6070
This example specifies the following string: **Microsoft**
6171

62-
The complete condition now looks like the following example:
72+
The following example shows the complete condition:
6373

64-
![Screenshot shows the Consumption workflow and the complete condition criteria.](./media/logic-apps-control-flow-conditional-statement/complete-condition-consumption.png)
74+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/complete-condition-consumption.png" alt-text="Screenshot shows the Consumption workflow and the complete condition criteria.":::
6575

66-
- To add another row to your condition, from the **Add** menu, select **Add row**.
76+
- To add another row to your condition, from the **New item** menu, select **Add row**.
6777

68-
- To add a group with subconditions, from the **Add** menu, select **Add group**.
78+
- To add a group with subconditions, from the **New item** menu, select **Add group**.
6979

7080
- To group existing rows, select the checkboxes for those rows, select the ellipses (...) button for any row, and then select **Make group**.
7181

7282
1. In the **True** and **False** action paths, add the actions that you want to run, based on whether the condition is true or false respectively, for example:
7383

74-
![Screenshot shows the Consumption workflow and the condition with true and false paths.](./media/logic-apps-control-flow-conditional-statement/condition-true-false-path-consumption.png)
84+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/condition-true-false-path-consumption.png" alt-text="Screenshot shows the Consumption workflow and the condition with true and false paths.":::
7585

7686
> [!TIP]
7787
>
@@ -81,27 +91,31 @@ This guide shows how to add a condition to your workflow and use the result to h
8191

8292
### [Standard](#tab/standard)
8393

84-
1. In the [Azure portal](https://portal.azure.com), open your logic app workflow in the designer.
94+
1. In the [Azure portal](https://portal.azure.com), open your Standard logic app resource.
8595

86-
1. [Follow these general steps to add the **Condition** action to your workflow](create-workflow-with-trigger-or-action.md?tabs=standard#add-action).
96+
1. On the resource sidebar menu, under **Workflows**, select **Workflows**, and then select your blank workflow.
8797

88-
1. On the designer, select the **Condition** action to open the information pane. Follow these steps to build your condition:
98+
1. On the workflow sidebar menu, under **Tools**, select the designer to open the workflow.
99+
100+
1. Add the trigger named **When a feed item is published** to your workflow by following the [general steps to add a trigger](add-trigger-action-workflow.md?tabs=standard#add-trigger).
101+
102+
1. Add the **Condition** action to your workflow by following the [general steps to add an action](add-trigger-action-workflow.md?tabs=standard#add-action).
103+
104+
1. In the **Condition** action, follow these steps to build your condition:
89105

90106
1. In the left-side box named **Choose a value**, enter the first value or field that you want to compare.
91107

92108
After you select inside the **Choose a value** box, the options to open the dynamic content list (lightning icon) or expression editor (formula icon) appear.
93109

94-
1. Select the lightning icon to open the dynamic content list.
95-
96-
From this list, you can select outputs from previous steps in your workflow.
110+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/open-dynamic-content-standard.png" alt-text="Screenshot shows Azure portal, Standard workflow designer, RSS trigger, and Condition action with information pane open, and dynamic content button selected.":::
97111

98-
![Screenshot shows Azure portal, Standard workflow designer, RSS trigger, and Condition action with information pane open, and dynamic content button selected.](./media/logic-apps-control-flow-conditional-statement/open-dynamic-content-standard.png)
112+
1. Select the lightning icon to open the dynamic content list.
99113

100-
This example selects the RSS trigger output named **Feed summary**.
114+
From this list, you can select outputs from previous steps in your workflow. This example selects the RSS trigger output named **Feed summary**.
101115

102-
![Screenshot shows Azure portal, Standard workflow designer, RSS trigger, and Condition action with criteria construction.](./media/logic-apps-control-flow-conditional-statement/edit-condition-standard.png)
116+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/edit-condition-standard.png" alt-text="Screenshot shows Azure portal, Standard workflow designer, RSS trigger, and Condition action with criteria construction.":::
103117

104-
1. From the middle list, select the operation to perform.
118+
1. From the middle box, select the operation to perform.
105119

106120
This example selects **contains**.
107121

@@ -111,7 +125,7 @@ This guide shows how to add a condition to your workflow and use the result to h
111125

112126
The following example shows the complete condition:
113127

114-
![Screenshot shows the Standard workflow and the complete condition criteria.](./media/logic-apps-control-flow-conditional-statement/complete-condition-standard.png)
128+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/complete-condition-standard.png" alt-text="Screenshot shows the Standard workflow and the complete condition criteria.":::
115129

116130
- To add another row to your condition, from the **New item** menu, select **Add Row**.
117131

@@ -121,7 +135,7 @@ This guide shows how to add a condition to your workflow and use the result to h
121135

122136
1. In the **True** and **False** action paths, add the actions to run, based on whether the condition is true or false respectively, for example:
123137

124-
![Screenshot shows the Standard workflow and the condition with true and false paths.](./media/logic-apps-control-flow-conditional-statement/condition-true-false-path-standard.png)
138+
:::image type="content" source="media/logic-apps-control-flow-conditional-statement/condition-true-false-path-standard.png" alt-text="Screenshot shows the Standard workflow and the condition with true and false paths.":::
125139

126140
> [!TIP]
127141
>
@@ -167,9 +181,9 @@ The following code shows the high-level JSON definition for the **Condition** ac
167181
},
168182
```
169183

170-
## Next steps
184+
## Related content
171185

172-
* [Run steps based on different values (switch actions)](logic-apps-control-flow-switch-statement.md)
173-
* [Run and repeat steps (loops)](logic-apps-control-flow-loops.md)
174-
* [Run or merge parallel steps (branches)](logic-apps-control-flow-branches.md)
175-
* [Run steps based on grouped action status (scopes)](logic-apps-control-flow-run-steps-group-scopes.md)
186+
* [Create switch actions that run workflow actions based on specific values](logic-apps-control-flow-switch-statement.md)
187+
* [Add loops to repeat actions in workflows](logic-apps-control-flow-loops.md)
188+
* [Create or join parallel branches with workflow actions](logic-apps-control-flow-branches.md)
189+
* [Run actions based on group status by using scopes](logic-apps-control-flow-run-steps-group-scopes.md)

0 commit comments

Comments
 (0)