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

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

5 REPLIES 5
abm
Super User
Super User

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

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 blog
Power Automate Video Tutorials
RezaDorrani
Dual Super User
Dual Super User

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

 

 

Hi, I am trying to extract the 'Permit Area' Value from 'Filter_Array_2' Output. Would Select work in this case? Could you expand more on the procedure to add a Select action to a flow (i.e.: expressions to be used to extract the desired values)? Here's a snippet of the output of 'Filter_ Array_2', and Permit Area value "B" is what I'd like to extract and use in my next action. Can anyone help?

[
{
"@odata.etag": "\"482\"",
"ItemInternalId": "15",
"ID": 15,
"Country": "Italy",
"Permit_x0020_Area": {
"@odata.type": "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
"Id": 1,
"Value": "B"
},
"Permit_x0020_Area#Id": 1,

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,843)