Powershell array to DataTable

I currently have a process that starts by invoking a powershell script that receive an array of Active Directory Users. At the moment the script exports the array to an excel file, which the robot then imports to a datatable.

My question is: Is there a way to to output the array to an DataTable with the invoke-powershell activity?

1 Like

If you get the array in the form of out argument from invoke powershell activity then you can add that into datatable, you can refer the following workflow.

Main.xaml (7.4 KB)