Introduction
Wrong trial with failed output >> If you use a length function with the “List Of Items”, then it won't work. It will fail because it's not a collection or array object.
Correct condition values to be added >> On the left side, add an expression with length function and use a value property of Get Items action output. This will give us the number of rows returned, it could 0 or more than 0.
length(body('Get_items')?['value'])
You can add a compare clause of Is greater than, and on the right side mention 0. That way, when the number of rows returned are more than 0, then you can take further action as you desire.

Check the below FLOW success output request for both scenarios >> when the output of Get Items action returns 0 rows, or more.

That’s it for this blog, I hope it helps. Thanks for reading!

Join the conversation! Your thoughts help the community grow.