After I read range with headers and got dataTable, what’s the best way to add/append a column with header and same values dynamically for each row to this dataTable?
you want to add values to same datatable without changing the header ?
Yes, to this datatable which I’ve read. Just append the new column like:
use assign activity like this
yourDataTableVariable.Columns(0).ColumnName = "value1"
yourDataTableVariable.Columns(1).ColumnName = "value2"
yourDataTableVariable.Columns(2).ColumnName = "value3"
Use “AddDataColumn” activity - this will create a new column.
Then add values to it by using assign activity.
I need firstly to add new column…
you can use data column activity! there itself you can change the column name!
if you want to change only the column name in the same datatable without changing the data in it you can use above syntax!
You can add data column in Previous datatable using
Add Data Column
U can give Any name in properties
Then for assigning values in that columns Use For each row
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.