Evaluate Data Flow Expressions Inline with Strings in ADF
Published Dec 06 2019 02:14 PM 7,088 Views
Microsoft

ADF Data Flows allow you to interpret expressions inline strings to easily enable calculations, parameters, and field values as part of your strings. Now, with string interpolation, you can produce super-easy string evaluations using expressions like these samples.

 

Use double-quotes and put any column, parameter, or expression inside curly braces as part of your string:

 

"My favorite movie is {iif(instr(title,', The')>0,"The {split(title,', The')[1]}",title)}"
clipboard_image_0.png
Parameter replacement inside of database query strings:
 
"select * from {$tablename} where orderyear > {$year}"

Inline expressions include full intellisense autocomplete capabilities inside of the curly braces:

 

"Total cost with sales tax is {round(totalcost * 1.08,2)}"

 

clipboard_image_0.png
1 Comment
Copper Contributor

Does this only work if you click on the add dynamic content link first or can you just type it into a field without using the expression builder?

 

Also can you show an example of using dynamic database strings in the data flow - not sure how to implement it just from the explanation above?

Version history
Last update:
‎Dec 06 2019 02:14 PM
Updated by: