web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow Condition If Fiel...
Power Automate
Unanswered

Flow Condition If Field is Blank

(5) ShareShare
ReportReport
Posted on by

Hi all, 

 

Last week I created a Flow with a condition to check if a field is blank. 

The advanced syntax is as such:

 

@Empty(item()?['PublishedVersion'])

 

This was working for a second, but now it is returning always as True, no matter what. 

Can anyone help me? Has anyone built conditions on If Field is Blank??

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    PieterVeenstra Profile Picture
    13 on at

    Can you try by adding the field i the left hand side of the condition and use the expression null on the right hand side.

  • Community Power Platform Member Profile Picture
    on at

    That was so simple. Why are you the FIRST person to mention this option on the entire internet?!

     

    Thank you!!

  • matthewnolan Profile Picture
    12 on at

    Can you explain more of the solution? What exactly was the final solution?

     

    Thanks,

    Matt

  • KSL Profile Picture
    6 on at

    This is what I'm trying to find too but cant seem to get it right. Can you publish the condition so we can see how you put it together please?

  • PieterVeenstra Profile Picture
    13 on at

    what kind of field are you checking?

  • -KSL Profile Picture
    2 on at

    I am runinng a bit of a SQL sync. A custom SQL table gets the SharePoint List ID value to that we can quickly update the matching rows between the tables periodically. In this flow, I am checking for a value in the SQL List results (SPO ID field (datatype int)) if it's null then I haven't create the row in the SharePoint list yet, so I I will go create it and then update the SQL value with the new row ID. If it has a value, then it already exists and I want to update that row in the SPO list.  So the condition works when it's empty, but when it's not it fails because "The template language function empty expects its parameter to be and object, an array, or a string. The provided value is of type integer. Please see blah blah blah." So I need to change the data type or make it a string, that seems pretty hokey...I must be missing something.

  • Eric666 Profile Picture
    4 on at

    Like proper grammar, double negatives are bad in Flow.  Do a check for null and if the answer is false then build your decisions down the No path in the condition.  This isn't an approval, saying No is not a bad thing.

  • Community Power Platform Member Profile Picture
    on at

    Thank you. It works for me. 

    "field name" is equal "null" (as expression)  

  • Community Power Platform Member Profile Picture
    on at

    For visual learners, I believe this is what the recommendation is. 

    Condition Check if Null.png

     

     

  • AlanPs1 Profile Picture
    2,471 on at

    Please check here or here for a solution.

    "Enter your expression on the left side of the row. Then, select Equals to and enter true."

     

    So what used to be:

     

    Has now become:

    If helpful, please mark with thumbs up.

    Thanks, Alan

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard