![]()
In this article, we will learn how to check null or empty in Power Automate. There are many ways to check a null or empty string variableโs value in Power Automate; here we will learn the best approach.
Check null or empty in Power Automate
Below is the complete Power Automate flow that checks the null or empty condition.

Approach 1: Check null condition in Power Automate Filter Query
We need to add the null condition in the below format in the filter query:
ColumnInternalName eq null
ย
Note:
- We have extended the condition to handle the content type-based filter as well; this is optional but recommended if you want to retrieve all documents from a given content type.
- In this demo, the โPOStatusโ column is a choice type column.
ย

Approach 2: Check null condition inside the apply to each control loop
Another way of checking the null condition is to get all items using the โGet Itemsโ action without adding any query filters to it.
Add an โapply to eachโ control and pass the value from the previous step, โGet Itemsโ as an input parameter.
Set the column value (for which you want to check null or empty) to a variable.
Then, add a โcondition controlโ where you check the below condition:
ย
empty(variables('varStrPOStatus')) is equal to true
ย
OR
ย
length(variables('varStrPOStatus')) is equal to 0
ย
ย
Note:
- In the above condition, we are checking whether the variable โvarStrPOStatusโ value is empty or has zero length.
- If this expression returns true, that means the value in the โPOStatusโ choice column in SharePoint has an empty value.
- Now, based on the yes-or-no condition, you can add your further business logic.

Demo: Check null condition inside the apply to each control loop
Now, execute the flow, and we can see three items have been retrieved by the filter query.

Check the null or empty condition in the SharePoint Online document library by filtering the view
We can check the null or empty condition in the SharePoint Online document library by filtering the view like below:

Summary: Check null or empty in Power Automate
Thus, in this article, we have learned the following with respect to checking the null or empty condition in Power Automate:
- How to check null or empty in Power Automate for the choice column.
- Check the null or empty condition in the SharePoint Online document library by filtering the view.
See Also: Power Automate Articles Hub (with real-time example)
- You may visit theย Power Automate articles hub
- Take care of whatโs important. Automate the rest
If you like our articles, please appreciate our efforts by liking and sharing them with your friends and colleagues. Pleaseย join the mailing listย to get our articles in your inbox as and when we publish them.
Happy automating and learning!
About Post Author
Discover more from Global SharePoint
Subscribe to get the latest posts sent to your email.