Skip to content

Commit d2b5767

Browse files
authored
Merge pull request #215535 from Harish-MSFT/docs-editor/control-flow-set-variable-acti-1666443221
Updated set variable activity screenshots to point to current ADF UI design
2 parents 3ffaec1 + 96698a3 commit d2b5767

File tree

4 files changed

+10
-14
lines changed

4 files changed

+10
-14
lines changed

articles/data-factory/control-flow-set-variable-activity.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ ms.service: data-factory
66
ms.subservice: orchestration
77
ms.custom: synapse
88
ms.topic: conceptual
9-
ms.date: 09/09/2021
9+
ms.date: 10/24/2022
1010
author: chez-charlie
1111
ms.author: chez
1212
ms.reviewer: jburchel
1313
---
14+
1415
# Set Variable Activity in Azure Data Factory and Azure Synapse Analytics
1516
[!INCLUDE[appliesto-adf-asa-md](includes/appliesto-adf-asa-md.md)]
1617

@@ -19,18 +20,14 @@ Use the Set Variable activity to set the value of an existing variable of type S
1920
## Create an Append Variable activity with UI
2021

2122
To use a Set Variable activity in a pipeline, complete the following steps:
22-
2323
1. Select the background of the pipeline canvas and use the Variables tab to add a variable:
24+
:::image type="content" source="media/control-flow-activities-common/add-pipeline-array-variable.png" alt-text="Screenshot shows an empty pipeline canvas with the variables tab selected having an array type variable named TestVariable.":::
2425

25-
:::image type="content" source="media/control-flow-activities-common/add-pipeline-array-variable.png" alt-text="Shows an empty pipeline canvas with the Variables tab selected having an array type variable named TestVariable.":::
26-
27-
2. Search for _Set Variable_ in the pipeline Activities pane, and drag a Set Variable activity to the pipeline canvas.
28-
1. Select the Set Variable activity on the canvas if it is not already selected, and its **Variables** tab, to edit its details.
26+
1. Search for _Set Variable_ in the pipeline Activities pane, and drag a Set Variable activity to the pipeline canvas.
27+
1. Select the Set Variable activity on the canvas if it is not already selected, and its **Variables** tab, to edit its details.
2928
1. Select the variable for the Name property.
30-
1. Enter an expression to set the value. This can be a literal string expression, or any combination of dynamic [expressions, functions](control-flow-expression-language-functions.md), [system variables](control-flow-system-variables.md), or [outputs from other activities](how-to-expression-language-functions.md#examples-of-using-parameters-in-expressions).
31-
32-
:::image type="content" source="media/control-flow-set-variable-activity/set-variable-activity.png" alt-text="Shows the UI for a Set Variable activity.":::
33-
29+
1. Enter an expression to set the value for the variables. This expression can be a literal string expression, or any combination of dynamic [expressions, functions](control-flow-expression-language-functions.md), [system variables](control-flow-system-variables.md), or [outputs from other activities](how-to-expression-language-functions.md#examples-of-using-parameters-in-expressions).
30+
:::image type="content" source="media/control-flow-set-variable-activity/set-variable-activity.png" alt-text="Screenshot shows the ui for a set variable activity.":::
3431

3532
## Type properties
3633

@@ -44,11 +41,9 @@ variableName | Name of the variable that is set by this activity | yes
4441

4542
## Incrementing a variable
4643

47-
A common scenario involving variables is using a variable as an iterator within an until or foreach activity. In a set variable activity you cannot reference the variable being set in the `value` field. To workaround this limitation, set a temporary variable and then create a second set variable activity. The second set variable activity sets the value of the iterator to the temporary variable.
48-
44+
A common scenario involving variables is using a variable as an iterator within an until or foreach activity. In a set variable activity, you cannot reference the variable being set in the `value` field. To work around this limitation, set a temporary variable and then create a second set variable activity. The second set variable activity sets the value of the iterator to the temporary variable.
4945
Below is an example of this pattern:
50-
51-
:::image type="content" source="media/control-flow-set-variable-activity/increment-variable.png" alt-text="Increment variable":::
46+
:::image type="content" source="media/control-flow-set-variable-activity/increment-variable.png" alt-text="Screenshot shows increment variable.":::
5247

5348
``` json
5449
{
@@ -110,3 +105,4 @@ Variables are currently scoped at the pipeline level. This means that they are n
110105
Learn about another related control flow activity:
111106

112107
- [Append Variable Activity](control-flow-append-variable-activity.md)
108+
168 KB
Loading
133 KB
Loading
104 KB
Loading

0 commit comments

Comments
 (0)