cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
livingstonep
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
v-bacao-msft
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
v-bacao-msft
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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,652)