cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Anonymous
Not applicable

What would be the expression to focus on an array within an object?

I'm new to expressions in Flow and could do with some help.

What would be the expression to see if the 'value' key in this object has any items in the array?

 

I tried `empty(body('List_records')['value'][0].length)` - and many more expressions - but i can't get it working.

 

{
"@odata.context": "https://unitedstates-002.azure-apim.net/.....",
"value": []
}

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: What would be the expression to focus on an array within an object?

If you need to check if an array contains any values, you could use the Length expression within a Condition.

 

https://powerusers.microsoft.com/t5/Using-Flows/array-length/td-p/39662

View solution in original post

2 REPLIES 2
Highlighted
Super User
Super User

Re: What would be the expression to focus on an array within an object?

If you need to check if an array contains any values, you could use the Length expression within a Condition.

 

https://powerusers.microsoft.com/t5/Using-Flows/array-length/td-p/39662

View solution in original post

Highlighted
Anonymous
Not applicable

Re: What would be the expression to focus on an array within an object?

That works, thanks. I just kept putting the expression incorrectly.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (6,289)