Using catalog reference variable in the IF condition of the flow designer

Nasir Hussain1
Tera Contributor

Hello folks,

 

I have a situation where the reference variable (TEAM) in my catalog item is not evaluating true in my flow designer and falls into the else loop rather than the if loop.   Team variable references sys_user_group table in the ServiceNow.

 

Below are the screenshots from the Flow designer and Execution details. I can't figure out why this condition is evaluated as False every time.  I selected 'Enterprise Applications'  as my value in the catalog item form.

 

Flow designer If Condition:

 

variable name ->Team->Name  is Enterprise Applications

 

NasirHussain1_0-1675464399782.png

 

 

Runtime values:  Yellow highlighted text shows it is a match, but it is still evaluated as false.

 

NasirHussain1_1-1675464399699.png

 

 

Any help will be much appreciated.

 

 

5 REPLIES 5

Community Alums
Not applicable

Hello @Nasir Hussain1,

Try using sys_id of the Enterprise Applications.

Thank you!

Hello Khusboo Kabra,

 

I have also tried the sys_id and it doesn't work. See the pic below. IF condition still evaluates to false. Is there an alternate way to accomplish this functionality? Should I use a different variable type in my catalog item?

 

NasirHussain1_0-1675694916885.png

 

 

Community Alums
Not applicable

Hello @Nasir Hussain1 ,

Is ur issue resolved?

Variable type should be same in both places from where u fetch data(field of that table) and data type of catalog item variable.

Thank you!

 

-O-
Kilo Patron
Kilo Patron

Maybe you are running into the Chrome bug where it inserts non-printable (byte order mark) characters into fields? Fixed in Tokyo patch 2 - PRB1606387?