cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlexisVossloh
Frequent Visitor

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
Community Champion
Community Champion

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
Community Champion
Community Champion

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,020)