24-06-22 07:34 AM
Answered! Go to Answer.
24-06-22 08:08 AM
dim i as Integer
i=0
For Each dr as DataRow in col_order_DT.Rows
origDT.Columns(""+dr(0).ToString()+"").SetOrdinal(i)
i=i+1
Next
ordered_coll=origDT
The run results are as follows:
Input Arguments:
Since, here I have maintained the order of column names (Top To Bottom) as Field3, Field2,Field4 and Field1 hence my output collection will also have the same order
Output Result:
You can publish the action and test the same from Process Studio. Let us know if this helps you out 🙂
24-06-22 08:08 AM
dim i as Integer
i=0
For Each dr as DataRow in col_order_DT.Rows
origDT.Columns(""+dr(0).ToString()+"").SetOrdinal(i)
i=i+1
Next
ordered_coll=origDT
The run results are as follows:
Input Arguments:
Since, here I have maintained the order of column names (Top To Bottom) as Field3, Field2,Field4 and Field1 hence my output collection will also have the same order
Output Result:
You can publish the action and test the same from Process Studio. Let us know if this helps you out 🙂