Fill data table from array

Good afternoon!
I create array of string. It’s done. Now i should fill new data table from created array. It will be a column.
I add “Build Data Table” and name my column. But didn’t fill them:(

Hi @RPA3
Use add data column activity

Thanks
Ashwin S

Can you write step by step?
Because I try it, but didn’t result

Hi @RPA3
Use Read range activity

use for each item in strarray

use add data column and pass rthe value as item and datatable and use write range

Thanks
Ashwin S

What write in ReadRange inWorkBookPath?
I have only array

Hi @RPA3
Can you share your xaml

Thanks
Ashwin S

Can you write your email?

Hi @RPA3
ashwinsrini88@gmail.com

Thanks
Ashwin S

Hi @RPA3,

You mentioned you have an array of string, you could iterate thru the array and add the values:

  • For Each loop on the array (Of string type)

  • Within the loop use the Add Data Row activity and pass the array value into the datatable

Please see the attached xaml file as example.

BuildDtFromArray.xaml (7.1 KB)

Let me know how that goes!

Regards,
PD

Hi @RPA3
BuildDtFromArray.xaml (9.2 KB)
Check this

Thanks
Ashwin S

So I can. You need to assign each value to a separate variable and write it in a column in a table

So I can. You need to assign each value to a separate variable and write it in a column in a table