Hi @Milbert_Dacudao!
So what you need to do is after you add the data column, use an Invoke Method activity.
Setup the activity using the info below:
- TargetType - (null)
- TargetObject - dataTableName.Columns(“ColumnName”)
- MethodName - SetOrdinal
Then in the Properties tab of the activity, add a parameter:
- Direction - In
- Type - Int32
- Value - 0
The Value is 0 because it is the index of where you want to move the column. You may want to change it depending on where you want the column to move.
Then you may want to use a custom activity from UiPath Go! for this one. Check it from the link below:
https://go.uipath.com/component/datatable-setordinal-70541
Hope this helps.
Thanks and regards.
Despi