Machtes Activitie - How exactly do I convert a Collection (IEnumerable) to a Datatable?

Hello everybody,

I use a Matches Activity and get a collection of the type IEnumerable as result.

But now I want to convert the collection into a datatable with strings.

Can someone from the forum tell me how to do this?


  1. Use String Join method to join the array of string.

    str1 = String.Join(",",arrString)

  2. And then pass that str1 value to Generate DataTable activity and provide delimiter as comma “,”. This activity will convert given String to DataTable.

1 Like

Thank you for your answer. It works!

1 Like

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