Printing Row items in loop

I have a csv file with list of emails. The same values i need to print. I have used for each row activity to traverse through the datatable.
I am trying to print the value as row.ToString but the output is coming as System.Data.DataRow.

Please help.Annotation 2020-01-17 145304

2 Likes

row(“yourColumnName”).ToString
row(0).ToString
both will work
try this
@Saikat_Chowdhury

2 Likes

Hi
you were almost done
the reason is row variable from FOR EACH ROW activity is of type SYSTEM.DATA.DATAROW

and if we want a value from DataRow we need to mention either the columnname or columnindex

so as you have mentioned the datarow it is giving output like this
but if we mention like this
row(columnindex).ToString
or
row(“columname”).ToString

where column index starts from 0 for the first column

Cheers @Saikat_Chowdhury

2 Likes

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