4

I have an array variable "Names" with this values for example ["Unity","Block","PRD","Monit"] and want to get each of them value into a new variable.

The output desired would be something like: Variable Group = Unity Variabel Test = Block (...)

As this is an array i thought a basic Names[0] would give me the first value and so on for 1,2,3,etc, but on a logic app I can't figure out how that works.

Is this possible?

Thanks

JCMonit
  • 43
  • 1
  • 1
  • 3

1 Answers1

7

You do know select value from an array have to specific the index, just don't know how to use variable expression.

Use variables('variable_name') get the variable value and then add the parameter [index] behind it to select the value you want. Just like the below picture shows.

enter image description here

enter image description here

George Chen
  • 13,703
  • 2
  • 11
  • 26