Skip to content

Commit 41fb75b

Browse files
authored
Updated screenshots and ms date
1 parent d59537c commit 41fb75b

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: data-factory
66
ms.subservice: orchestration
77
ms.custom: synapse
88
ms.topic: conceptual
9-
ms.date: 10/22/2022
9+
ms.date: 10/24/2022
1010
author: chez-charlie
1111
ms.author: chez
1212
ms.reviewer: jburchel
@@ -21,11 +21,14 @@ Use the Set Variable activity to set the value of an existing variable of type S
2121

2222
To use a Set Variable activity in a pipeline, complete the following steps:
2323
1. Select the background of the pipeline canvas and use the Variables tab to add a variable:
24-
![](media/control-flow-set-variable-activity/paint1.png)
25-
2. Search for _Set Variable_ in the pipeline Activities pane, and drag a Set Variable activity to the pipeline canvas.
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.":::
25+
26+
1. Search for _Set Variable_ in the pipeline Activities pane, and drag a Set Variable activity to the pipeline canvas.
2627
1. Select the Set Variable activity on the canvas if it is not already selected, and its **Variables** tab, to edit its details.
2728
1. Select the variable for the Name property.
2829
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.":::
31+
2932
## Type properties
3033

3134
Property | Description | Required
@@ -40,7 +43,8 @@ variableName | Name of the variable that is set by this activity | yes
4043

4144
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.
4245
Below is an example of this pattern:
43-
![](media/control-flow-set-variable-activity/increment-variable1.png)
46+
:::image type="content" source="media/control-flow-set-variable-activity/increment-variable.png" alt-text="Screenshot shows increment variable.":::
47+
4448
``` json
4549
{
4650
"name": "pipeline3",

0 commit comments

Comments
 (0)