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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Users online (3,068)