Hello, i’m trying to read all columns in one sheet and paste it to column on another sheet and complete an operation for each column.I want to read column “A” from the “Unity” sheet and paste column “B” of the “Results” sheet, then I will start an action for column B and get a result. After getting the result, I want to do this for all columns in “Unity” sheet. How can I do this?
@Bekir_Turkekul, please follow the below-mentioned steps:
- Read the Unity sheet.
- Read the Results sheet.
- Use a For Each activity, change its type to System.Data.DataColumn and iterate through the columns in the UnityDT like UnityDT.Columns.
- Use an Add Data Column activity and pass the column (object from the for loop), to the ResultDT.
- Use the Invoke Method with the method name as SetOrdinal to change the column’s position.
Hope this helps!