@rayan.jain7
Have a look here on how we can do it with the help of datacolumn expression. Has the benefit that it auto updates on value changes:
if LINQ is needed give a try on
work on datatable having structure Col1,Col5 - dtData
prepare empty datatable:
dtResult = dtData.Clone
Add Col6 to dtResult
LINQ
(From d in dtData.AsEnumerable
let c6 = String.Join(“”, {0,1,3,4}.Select(Function (x) d(x)))
let ra = d.ItemArray.Append(c6).toArray
Select dtResult.Rows.Add(ra)).CopyToDataTable
assuming your datatable variable is called dt
a. use add data column activity to add data column called Col6 (if it doesnt exist)
b. use invoke code
click edit arguments and add in/out argument dt