Stringify transformation in mapping data flow
APPLIES TO: Azure Data Factory Azure Synapse Analytics
Use the stringify transformation to turn complex data types into strings. This can be very useful when you need to store or send column data as a single string entity that may originate as a structure, map, or array type.
In the stringify transformation configuration panel, you will first pick the type of data contained in the columns that you wish to parse inline. The parse transformation also contains the following configuration settings.
Similar to derived columns and aggregates, this is where you will either modify an exiting column by selecting it from the drop-down picker. Or you can type in the name of a new column here. ADF will store the stringifies source data in this column. In most cases, you will want to define a new column that stringifies the incoming complex field type.
Use the expression builder to set the source complex field that is to be stringified. This can be as simple as just selecting the source column with the self-contained data that you wish to stringify, or you can create complex expressions to parse.
In this example,
body.properties.periods is an array inside a structure returned from a REST source.
Data flow script
stringify(mydata = body.properties.periods ? string, format: 'json') ~> Stringify1