From AddDataColumn activity how to specify name of my input DataColumn

Hello everyone, when I use the “AddDataColumn” activity and as input I pass a DataColumn variable, how could I specify the name of the column that it generates? because when I run the activity with the options that you can see in the image uipath generates the new column with a name “Column1” but I want the name “ColTest” to remain.

Thank you very much in advance for your support.

Hi,

To create a new column we will be using add data column whre you can mention the name like below screenshot.

Hello, if I put the name in ColumnName I get the error “… Only one overload group should have its arguments configured”, I want to add a new column but passing it the data of the column of another datatable at the same time.

Fine then

Before using a ADD DATACOLUMN activity use this assign activity

dt_AperturaTemp.Columns(“Column1”).Columnname = “ColTest”

Then use the add datacolumn like this with input as in Column property

dt_AperturaTemp.Columns(“ColTest”)

Cheers @Gerardo_Jesus_Ignacio_Vil

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.