How to check if Get items returned nothing in Power Automate
Updated 2 November 2026
The expression:
empty(body('Get_items')?['value'])True when Get items (or List rows) returned nothing.
Where it goes
A Condition, is equal to true, to skip a 'nothing to report' email.
- In the Power Automate designer, click in the box that needs the value.
- Select the fx (Expression) button that appears next to the dynamic content list.
- Paste the expression and select Add. It should appear as a purple fx chip; if you can see it written out as text, it went in as plain text and won't run.
Example output
false (illustrative; AutomateAlong doesn't run expressions)
The common mistake
equals(body('Get_items')?['value'], null)An empty result is an empty list, not null, so this is always false. empty() is true for both.
Change it for your flow
Step names inside an expression must match your steps exactly, with underscores for spaces: Get_items, not Get items. To adapt it, open it in the Expressions checker, which points at any bracket, quote or name that's wrong and suggests the corrected version. To write a different one from plain English, describe what you need on the same page.
Related
- How to get the first item without Apply to each in Power Automate
- How to count the attachments on an email in Power Automate
- How to count the items returned by Get items in Power Automate
- How to join a list into comma-separated text in Power Automate
- How to pull one column out of a list with Select in Power Automate
AutomateAlong is independent and isn't affiliated with Microsoft. Microsoft and Power Automate are trademarks of the Microsoft group of companies.