How to copy specific columns from one DataTable to another?
I have a MS Excel sheet downloaded from a SAP server through a workflow which have 146 columns.
I need only 5 columns from those. I am able to create a DataTable through Excel Application scope and Read Range.
5 (+1, which I will create later) columns:
As per this comment,
I tried to populate the new Data Table:
var_columnNames = {"Name"}
dt_new = new DataView(dt_input).ToTable(false, var_columnNames)
But it seems three consecutive columns have the same name as Payment in and UiPath shows an error for duplicated Column Names. So I am trying with Add Headers as unchecked.
Can you suggest me if I am on the right track or a better approach?