I have extracted data from one CVS file and made some modification (data manipulation) and stored in a variable.
Now i want to have that data coming in the variable to get stored in another CVS file.
sequence is something like this
first read csv file —> using assign property to filter some data using select method —> build data table to create row → for each there data manipulation is taking place —> write csv to again store data
So you already filter the DT using the DT.Select Statement
If you just want to then take those into a new datatable you dont need for each to build need datatable.
If your excel spreadsheet has the headers of Name, Username then you cna do the below.
within your write CSV activity add the filepath where you want it to be created.
In the datatable column add DT.Select().CopytoDatatable.DefaultView.ToTable(True, "Name", "Username")
Also check add headers.
now with this we are adding row in data table.
but on debugging it is giving error.
Actually i have created new username using few string function but it is giving error. expected int