简体   繁体   中英

Transform selected excel columns to json string in data factory v2

I am having the excel sheet with multiple columns. I need to transform selected column of excel sheet to json string and store in seperate column in excel using Azure Data Factory V2.

In data factory v2 using data flow we can create and update the existing columns using Derived Column Transformation.

I am having below excel file:

在此处输入图片说明

With Azure Data Factory data flow, I need to transform the file to below:

在此处输入图片说明

Please let me know if this is possible to achieve in Derived Columns data flow transformation or I have to use custom activity to achieve the format.

Yes, Data Flow could make it as a JSON string. But it's not a real JSON object.

You could try bellow expressions:

concat('[{"',Column2,'":',Column3,'}]' )

在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM