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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (4,164)