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/data-factory/control-flow-set-variable-activity.md
+67-6Lines changed: 67 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,28 +5,89 @@ services: data-factory
5
5
documentationcenter: ''
6
6
ms.service: data-factory
7
7
ms.workload: data-services
8
-
9
8
ms.topic: conceptual
10
-
ms.date: 10/10/2018
9
+
ms.date: 04/07/2020
11
10
author: djpmsft
12
11
ms.author: daperlov
13
12
manager: jroth
14
13
ms.reviewer: maghan
15
14
---
16
-
# Set Variable Activity in Azure Data Factory
15
+
# Set variable activity in Azure Data Factory
17
16
18
17
Use the Set Variable activity to set the value of an existing variable of type String, Bool, or Array defined in a Data Factory pipeline.
19
18
20
19
## Type properties
21
20
22
21
Property | Description | Required
23
22
-------- | ----------- | --------
24
-
name | Name of the activity in pipeline | Yes
23
+
name | Name of the activity in pipeline | yes
25
24
description | Text describing what the activity does | no
26
-
type | Activity Type is SetVariable | yes
27
-
value | String literal or expression object value used to set specified variable | yes
25
+
type | Must be set to **SetVariable** | yes
26
+
value | String literal or expression object value that the variable will be assigned to | yes
28
27
variableName | Name of the variable that will be set by this activity | yes
29
28
29
+
## Incrementing a variable
30
+
31
+
A common scenario involving variables in Azure Data Factory 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.
0 commit comments