How to print whole data row within For Each Row loop?

Hi,

I would like to print the whole DataRow in WriteLine activity which is within a For Each Row loop.
I’ve tried with row(0), row(1), etc. but the problem is sometimes I don’t know how many columns exist in DataTable.

What would be the best approach for printing all the records in a DataRow?

Best way to do that is use itemArray And string.join

Put this in the write line/log message

String.join(“,”, Row.itemArray)
1 Like

@bp777 , if this worked for you, could you could kindly mark my post as “Solution”, I’d appreciate it!