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
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (1,799)