How to pick each item from an array

Hi ,

I have array1 of string stored in a variable .
In for each for array2 -

for first item I want to pick first value of the array1 [0], for second item second value of the array1 and so on .

What should I use in Assign activity .

I have “ArrayNames” variable as array of strings.

Regards,
G

your request is unlclear.

For each Acitity item in YourStringArrayVar | TypeArgument: String

will iterate over all items and you can refer to the looped item with the loop variable: item

Hi @gokul1904

Check out the XAML file

image

Arraystring.xaml (5.4 KB)

Regards
Gokul

@gokul1904
please follow these steps
1- put for each loop
2-select loop argument as string
and put array string and in body use item

I have 2 arrays .
I have to loop second array. While looping through second array , I have to pick each item from first array to put into queue items.

Regards,
G

Hi @gokul1904

Check out the Updated XAML file

Arraystring.xaml (6.8 KB)

Regards
Gokul

looks like this with some contraints

grafik
grafik

1 Like

@gokul1904 There is no need of 2 loops, use first loop index to manipulate other string too

1 Like

thank you @ppr

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