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
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,664)