Blog Post

Azure Data Factory Blog
1 MIN READ

Evaluate Data Flow Expressions Inline with Strings in ADF

Mark Kromer's avatar
Mark Kromer
Icon for Microsoft rankMicrosoft
Dec 06, 2019

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)}"
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)}"

 

Published Dec 06, 2019
Version 1.0

1 Comment

  • DTL-minion's avatar
    DTL-minion
    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?