Flow Designer - How do you add an "is empty" or null value conditional?

Denton
Tera Contributor

How do you add an "is empty" or null value IF condition?

Logically, I am just trying to write a condition that says
IF (Assigned To is not empty) THEN (etc).

What's throwing me off is that the UI has options for "is", "is not", "contains", and "does not contain" -- but there are not options for "is empty" and "is not empty."

I imagine there's a simple way to do this, but any help would be appreciated.

find_real_file.png

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Denton,

 

In that case, you will just select "is not" from the filter and leave the input as blank. i.e Trigger->Incident Record->Assigned To | is not | 

 

-Pradeep Sharma

View solution in original post

9 REPLIES 9

Vladimir6
Tera Expert

This was working fine until it suddenly stopped. I resolved the issue by dot-walking from record to a field type String (for example, Assigned To->Sys Id) and made the condition is (empty).

Maybe this can help with multiple records too?

Izzy B1
Tera Guru

For anyone searching for recent improvements related to this issue: there haven't really been any. Please go here to up-vote and comment in favor of the creation of "is empty" and "is not empty" options.

Purna1
Giga Expert

In old version, We are using "is not" from filter and leave as black but in latest version(Quebec) we have OOTB functions.
ServiceNow has provided OOTB box utilities functions. We can call the funtion to check the data pill is blank or null value.
Please find the reference screenshot.

 

find_real_file.png


For more information. Please refer below link

https://docs.servicenow.com/bundle/quebec-servicenow-platform/page/administer/flow-designer/reference/utilities-transform-functions.html#d1097001e249

 

Great pointer, thanks for the information.

Community Alums
Not applicable

Here are some examples to show that this is really not working as expected. The External Reference field below was simply an empty string field.

1. Tried to use the "is not" comparison with a blank field, but with multiple conditions this evaluation did not work:

2. Tried to use the "Is Blank?" option, but somehow this also did not work:

3. Finally got this working with the "Is Null?" option:

 

So there are still some bugs in here and unexpected behavior.

I upvoted the idea for the "is empty" improvement.