cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Kudo Commander
Kudo Commander

Access Array variable elements in MS Flow

Our flow Get Items step is failing because we can't get the individual array element values for our VolunteerManager field

 

we have the array composed like this:

ComposeVolunteers.PNG

when that executes we get this:

Volunteers5.PNG

 

we union that in a Set variable action to basically group the records:

union(body('Get_Volunteer_Managers'), body('Get_Volunteer_Managers'))

we try to filter our get Items step using an OData Query like this:

VolunteersArray1.PNG

but when we run it in our get Items step (in the loop) to retrieve the records having the current VolunteerManager we get this:

VolunteersArray2.PNG

 

that should say:

 

VolunteerManager eq 'Michelle Russell' and Status eq 'Submitted'

 

 

so how can we get the value correctly?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

 

Hi @livingstonep ,

 

Please try the following expression to configure Filter Query:

variables('Unique Names')?[0]?['Name']

 

Best Regards, 

Community Support Team _ Barry
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

1 REPLY 1
Community Support
Community Support

 

Hi @livingstonep ,

 

Please try the following expression to configure Filter Query:

variables('Unique Names')?[0]?['Name']

 

Best Regards, 

Community Support Team _ Barry
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
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (12,379)