Dynamic variable as selector

Greetings!

I have a dynamic variable {{Name}} in selector.
In variables section I assigned default value to Name as “Kitty”

I have an array namesArray = {“Mitten”, “Jasper”}

For each Name in namesArray
I am clicking on the element using Dynamic selector. It is not working. The value it is looking for the default value Kitty.

Please suggest what is going wrong?

Thank you,

@A_Learner

Inside for each did you reassign thw variable name with the new array values?

Ideally you ahould do name = currentitem

Cheers

1 Like

Hi @A_Learner ,

Is Name the iterative instance from For Each activity or is it a separate variable ?

1 Like

For each Name in NamesArray.

Name is an iterative instance.

Thank you,

Thanks!! Works like a charm.

1 Like

@A_Learner , Then according to your statements you have two instances with the same name.

Keep the Iterative instance as CurrentItem and then assign the value to the Name variable created using an Assign activity.

Name = CurrentItem.ToString

Thank you @supermanPunch
This is the solution.
Thank you @Anil_G

2 Likes

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