How to Display DataRow Array

Hi, May i ask how do i display a DataRow array using Writeline? I am doing this to check whether the values filtered from the data table is correct.

@Derek_Xu,

  1. First convert it to datatable using DataRowarray.CopyToDatatable()
  2. use Output Datatable β†’ converts datatable to string
  3. use this string in writeline

SideNote : These steps are already available in our forum (might be in different threads). Search if you wanna know more :slight_smile:

Regards,
Dom :slight_smile:

6 Likes

Hi @Derek_Xu,

use For Each activity to loop through the DataRow array

inside for each loop use write line or log message

String.Join(",",row.ItemArray)

Regards,
Arivu

4 Likes

Thanks for the help

Hi @arivu96 and @Dominic

do you have sample workflow?

regards,
venkatesh.

Hi @Venkatesh_Chowdary,@Derek_Xu

Refer this
DataRowArray.xaml (9.9 KB)

Regards,
Arivu

2 Likes

This solution isn’t accurate to his original question of printing from an Array (rather than a data table per your .xaml solution

this is data table not datarow.

Correct this was not an answer to your question. Did you get one?..that worked :slight_smile: