cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

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

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

Anonymous
Not applicable

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

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,703)