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/tutorial-pipeline-return-value.md
+27Lines changed: 27 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -81,6 +81,33 @@ There are two noticeable callouts in referencing the pipeline return values.
81
81
## Special Considerations
82
82
83
83
While you can include multiple Set Pipeline Return Value activities in a pipeline, it is important to ensure that only one of them is executed in the pipeline.
84
+
In ADF, the expression language does not directly support inline JSON objects. Instead, we need to concatenate strings and expressions properly.
85
+
Example:
86
+
In JSON format :
87
+
```json
88
+
{
89
+
"datetime": "@{utcnow()}",
90
+
"date": "@{substring(utcnow(),0,10)}",
91
+
"year": "@{substring(utcnow(),0,4)}",
92
+
"month": "@{substring(utcnow(),5,2)}",
93
+
"day": "@{substring(utcnow(),8,2)}"
94
+
}
95
+
```
96
+
The code must transform to:
97
+
```
98
+
@{
99
+
concat(
100
+
'{',
101
+
'"datetime": "', utcnow(), '", ',
102
+
'"date": "', substring(utcnow(),0,10), '", ',
103
+
'"year": "', substring(utcnow(),0,4), '", ',
104
+
'"month": "', substring(utcnow(),5,2), '", ',
105
+
'"day": "', substring(utcnow(),8,2), '"',
106
+
'}'
107
+
)
108
+
}
109
+
```
110
+
84
111
85
112
:::image type="content" source="media/pipeline-return-value/pipeline-return-value-04-multiple.png" alt-text="Screenshot with Pipeline Return Value and Branching.":::
0 commit comments