How to Display DataRow Array


#1

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.


#2

@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:


How to put array of data row into a data table?
#3

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

Thanks for the help


#5

Hi @arivu96 and @Dominic

do you have sample workflow?

regards,
venkatesh.


#6

Hi @Venkatesh_Chowdary,@Derek_Xu

Refer this
DataRowArray.xaml (9.9 KB)

Regards,
Arivu