Check if an array is empty in Power Automate Flows and Logic Apps

My instinct was to try and use not equal to null. When that failed I considered checking length, but it turns out there is a much neater way:

empty(body('my_array'))

I used that expressions inside a Condition action with a is equal to true

Leave a Comment