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 II
Dual Super User II

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

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

Power Automate Video Tutorials
Highlighted

ok but I have another problem Smiley Frustrated  :

 

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

error_variable.JPG

 

 

Highlighted

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

Power Automate Video Tutorials
Highlighted
Dual Super User II
Dual Super User II

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

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

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