cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
willy30870
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
RezaDorrani
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
abm
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 blogPower Automate Video Tutorials

ok but I have another problem Smiley Frustrated  :

 

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

error_variable.JPG

 

 

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 blogPower Automate Video Tutorials
RezaDorrani
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
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (47,482)