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

extract one value from a filter array

Hello,

 

I would like extract one value of the output filter array 2. 

More exactly the first value of "proprietaire" row ?

 

I have alreday trying with an other filter, with compose, but I have always some errors.

Could you help me ?

help_array_extract.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Dual Super User
Dual Super User

Re: extract one value from a filter array

Hi @willy30870 

 

After filter array 2 step

If you need the value of "proprietaire" row 

 

Use expression below to get the first proprietaire value from the array output

body('Filter_array_2')?[0]?['proprietaire']

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

4 REPLIES 4
Highlighted
Super User III
Super User III

Re: extract one value from a filter array

Hi @willy30870 ,

 

This is what you need to do. After Get rows declare a variable type as object. Use the expression to get the 

value for index 0 you need to use the below
body('Get_rows')?['value'][0]
To get index 1
body('Get_rows')?['value'][1]
 

 

google1.png

 

Next use the Parse Json to extract each properties from the object.

 

google2.png

 

If you have any questions please let me know.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Helper I
Helper I

Re: extract one value from a filter array

ok but I have another problem Smiley Frustrated  :

 

the 'initialize variable' can only be user on top level...

error_variable.JPG

 

 

Highlighted
Super User III
Super User III

Re: extract one value from a filter array

Hi @willy30870 ,

 

Are you trying to add the initialise variable under a for each loop? You could try initialise flow step before the Get Rows.

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Highlighted
Dual Super User
Dual Super User

Re: extract one value from a filter array

Hi @willy30870 

 

After filter array 2 step

If you need the value of "proprietaire" row 

 

Use expression below to get the first proprietaire value from the array output

body('Filter_array_2')?[0]?['proprietaire']

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

 

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,966)