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/parameters-data-flow.md
+21-14Lines changed: 21 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,17 @@
1
1
---
2
-
title: Azure Data Factory mapping data flow Parameters
2
+
title: Parameterizing mapping data flows
3
3
description: Learn how to parameterize a mapping data flow from data factory pipelines
4
4
author: kromerm
5
5
ms.author: makromer
6
+
ms.reviewer: daperlov
6
7
ms.service: data-factory
7
8
ms.topic: conceptual
8
-
ms.date: 06/10/2019
9
+
ms.date: 01/07/2020
9
10
---
10
11
11
-
# Mapping data flow Parameters
12
+
# Parameterizing mapping data flows
12
13
13
-
14
-
15
-
Mapping Data Flows in Azure Data Factory support the use of parameters. You can define parameters inside of your data flow definition, which you can then use throughout your expressions. The parameter values can be set by the calling pipeline via the Execute Data Flow activity. You have three options for setting the values in the data flow activity expressions:
14
+
Mapping data flows in Azure Data Factory support the use of parameters. You can define parameters inside of your data flow definition, which you can then use throughout your expressions. The parameter values can be set by the calling pipeline via the Execute Data Flow activity. You have three options for setting the values in the data flow activity expressions:
16
15
17
16
* Use the pipeline control flow expression language to set a dynamic value
18
17
* Use the data flow expression language to set a dynamic value
@@ -23,25 +22,33 @@ Use this capability to make your data flows general-purpose, flexible, and reusa
23
22
> [!NOTE]
24
23
> To use pipeline control flow expressions, your data flow parameter must be of type string.
25
24
26
-
## Create parameters in mapping data flow
25
+
## Create parameters in a mapping data flow
27
26
28
-
To add parameters to your data flow, click on the blank portion of the data flow canvas to see the general properties. In the settings pane, you will see a tab called 'Parameters'. Click the 'New' button to generate a new parameter. For each parameter, you must assign a name, select a type, and optionally set a default value.
27
+
To add parameters to your data flow, click on the blank portion of the data flow canvas to see the general properties. In the settings pane, you will see a tab called **Parameter**. Select **New** to generate a new parameter. For each parameter, you must assign a name, select a type, and optionally set a default value.
29
28
30
29

31
30
32
-
Parameters can be utilized in any data flow expression. Parameters begin with $ and are immutable. You will find the list of available parameters inside of the Expression Builder under the 'Parameters' tab.
31
+
## Use parameters in a mapping data flow
32
+
33
+
Parameters can be referenced in any data flow expression. Parameters begin with $ and are immutable. You will find the list of available parameters inside of the Expression Builder under the **Parameters** tab.
A common pattern is to pass in a column name as a parameter value. To reference the column associated with the parameter, use the `byName()` function. Remember to cast the column to its appropriate type with a casting function such as `toString()`.
37
44
38
-
* You can use parameter values inside of your transformation expressions. You will find the parameter list under the Parameters tab in the Expression Builder. 
45
+
For example, if you wanted to map a string column based upon a parameter `columnName`, you can add a derived column transformation equal to `toString(byName($columnName))`.
39
46
40
-
* Parameters are also used to configure dynamic values for your Source and Sink transformation settings. When you click inside of configurable fields, you will see the "Add dynamic contect" link appear. Clicking there will take you to an Expression Builder where you can use parameters to use dynamic values. 
47
+

41
48
42
-
## Set mapping data flow parameters from pipeline
49
+
## Assign parameter values from a pipeline
43
50
44
-
Once you've created your data flow with parameters, you can execute it from a pipeline with the Execute Data Flow Activity. After you add the activity to your pipeline canvas, you will be presented with the available data flow parameters in the activity's 'Parameters' tab.
51
+
Once you've created your data flow with parameters, you can execute it from a pipeline with the Execute Data Flow Activity. After you add the activity to your pipeline canvas, you will be presented with the available data flow parameters in the activity's **Parameters** tab.
45
52
46
53

0 commit comments