You can use the following LinQ in an Invoke Code activity:
io_dt.AsEnumerable.ToList.ForEach(Sub(row)
row("Combine") = row(Name).ToString+" "+row("RollNo").ToString+" "+row("Marks").ToString
End Sub)
Parameters for Invoke Code:
Hope this helps,
Best Regards.
-
Read Range activity:
- Output: inputData
- Specify the range and file path to read the data into the DataTable
-
Add Data Column activity:
- DataTable: inputData
- ColumnName: CombinedColumn
-
For Each Row activity:
- DataTable: inputData
- Assign activity:
- To: row(“CombinedColumn”)
- Value: row(“Column1”).ToString() + row(“Column2”).ToString() + row(“Column3”).ToString()
I hope it helps!
Regards,
I have attached the flow for your reference and the excel too. Please do check. Below are the conditions used in assign activity.
value1=CurrentRow(“Name”).ToString
value2=CurrentRow(“RollNo”).ToString
value3=CurrentRow(“Marks”).ToString
combinedValue=value1+vbLf+value2+vbLf+value3+vbLf
Input.xlsx (8.6 KB)
Hope it helps!!
Regards,
Can you guide how I can use this approach, If possible please upload xaml
Thanks for helping can you please share xaml unable to download zip file
Sure, these are the files for your reference.
Main.xaml (6.6 KB)
Input.xlsx (8.2 KB)
Output.xlsx (8.3 KB)
Best Regards.
Thanks a lot
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.