Collection to data table

i refer to the example and at part 6, i want it to be converted to a datatable so it can be writen in excel files.
or is there any way i can write get the value of the inputName and write into excel?
https://www.uipath.com/kb-articles/how-to-work-with-a-dynamic-array

Hey @4ndyg0h

Check this,

CollectionToExcel.xaml (10.1 KB)

Let me know if it is helpful.

Thanks,
Rammohan B.

1 Like

Hi @Rammohan91,

What if I have to add Column values (a,b,c,b,a,e,d,a) to an Existing datatable.
Tried,
DataTable.Columns.Add(“Value”,getType(string),“ColName”)
But I get error as Value "xxx’ already exists in DataTable.
Since my values are repeating. How can I handle this multiple same value insertion scenario?