How to initialize a DataColumn and insert values into it?

I am able to add values into a DataRow object(‘Add DataRow’ activity->Properties->ArrayRow)

But I am not able to achieve the same for a DataColumn, because I see no options in the properties pane of Add DataColumn activity.

Any ideas?

@Athrix05 use build data table activity refer This zip file

Hi @Athrix05

You can add values to a data column by looping through your data table and using an assign activity within a loop

Use a for each row activity to loop though the datatable
In the assign activity
Target is row("ColumnName")
And for the value property you can provide the value

Additionally, if you want to add a column for a existing data table to add values using above method, you can use add data column activity to create a column

1 Like

You can use add data column activity to add additional column on the predefined datatable.

@singhonkar @Lahiru.Fernando
Thanks for the reply, but I am looking for something else.

Please check this thread for a different angle to my question.