How to add data(integers) into array and print the same

Hi,

I have extracted a data table, here am using ‘For each row’ where I get certain values from the table and i wanted to add those values into an array, print the array and also remove duplicates in that array? so that i can use that unic array values for further task.

Please let me know how to do this. Thank you in adavance

@Vinutha_L - I don’t think this is StudioX question.Could you please change the tag/category to Studio.

Please provide some input sample and expected output ?

@prasath17 sure!

In a website after doing extract data table i get values such as 2,1,3,1,2,4,3,1 …etc
i wanted to add each value into an array say for the first iterate I get element ‘2’ i need to add it into an array next iterate i may get element ‘1’ add it into an array next iterate i may get ‘4’ likewise i wanted to add all the values into array in a for each loop
When i print the array i should get like this EX: {2,1,3,1,4,3,14}
Later I wanted to remove duplicates.

finally, my array should be like this {2,1,3,4}

Hi @Vinutha_L
Please check with the below xaml.

Main.xaml (5.9 KB)

Thanks

Hi @pravin_calvin

Thank you !! In the xml u gave, I got only unic values in a array. Before that let me know from a data table how to add values into array dynamically?

@Vinutha_L

Use List of String instead of array…
If you want an array then you can convert the same working list to it.
I have added that example also in the attached flow…
Just replace the build data table with your read range or your table

Main.xaml (11.8 KB)

@pravin_calvin

Thank you a lot!! its working

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