cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlexisVossloh
Helper I
Helper I

Select single element in array

Hello

 

how I could select a specific item in this type of array ?

 

AlexisVossloh_0-1634285953929.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
ekarim2020
Super User
Super User

There are a number of different ways to select an item from an array. Here are a few ways:

2021-10-15_09-45-30.png

Selecting a value using an expression is shown below

2021-10-15_09-54-28.png

And the Output of the expressions first(variables('response')) is shown below:

ekarim2020_0-1634288283763.png

 

You can also use a loop, to iterate through each item of the array:

2021-10-15_09-59-45.png

Here is an example of the output of the Apply to each loop, where each element of the array is accessed and the content is displayed by examining the output of the Compose action:

2021-10-15_10-10-43.gif
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

View solution in original post

1 REPLY 1
ekarim2020
Super User
Super User

There are a number of different ways to select an item from an array. Here are a few ways:

2021-10-15_09-45-30.png

Selecting a value using an expression is shown below

2021-10-15_09-54-28.png

And the Output of the expressions first(variables('response')) is shown below:

ekarim2020_0-1634288283763.png

 

You can also use a loop, to iterate through each item of the array:

2021-10-15_09-59-45.png

Here is an example of the output of the Apply to each loop, where each element of the array is accessed and the content is displayed by examining the output of the Compose action:

2021-10-15_10-10-43.gif
Ellis
____________________________________
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Users online (4,334)