Flow Designer If Action with List Fields

jmiskey
Kilo Sage

We have a custom data table with some non-mandatory List type fields, where users can select one, many, or no options.  We then have a Flow Design that runs against this table, where we have an IF action, where it is checking to see if one of three possible selections is made.  

 

So the details of that Action looks like this:

jmiskey_0-1704307841431.png

The issue is that if NO selections are made in this list field (so it is Null), the Flow throws an error, and the rest of my Flow doesn't run.

 

How do I update my If action, so that it will not error out if no selections are made in this List field it is checking?

 

Thanks

1 ACCEPTED SOLUTION

You should be able to do is not and then the value is just empty. You wouldn't put a pill/value there.

View solution in original post

4 REPLIES 4

Elijah Aromola
Mega Sage

Can you first check if it has a valid selection? Can you share a screenshot of an errored out context? 

That is precisely what I am asking!  How exactly do I check to see if it has a value first?  I assume that I need to nest my current IF action inside of another IF action that checks to see if a selection has been made in that field, but I am not sure exactly how to do that in Flow Designer. 

 

If I place that field in a Condition, my 4 options are:

- is

- is not

- contains

- does not contain

 

There aren't any "is empty", "is not empty", or "is anything" options, like in other places in ServiceNow.

So how exactly do I check to see if this field has a selection or not?

 

By the way, here is the exact error message from the error logs:

jmiskey_0-1704309322865.png

 

You should be able to do is not and then the value is just empty. You wouldn't put a pill/value there.

Thank you! It works perfectly!

I guess I was overthinking it...