Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can we use is one of UI POLICY condition with string

MalikB
Tera Contributor

Hello,

 

I want to ask if we can use is one of ui policy condition to get string value in a hidden ctalog variable created?

6 REPLIES 6

nemamuskan
Tera Contributor

Hello @MalikB 

 

Yes we can use is one of ui policy condition to get string value in a hidden catalog variable which is having the value populated from somewhere or is having some default value.

 

Hope this helps.

Ankur Bawiskar
Tera Patron
Tera Patron

@MalikB 

what's your actual business requirement?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

GlideFather
Tera Patron

@MalikB 
It is possible, but it is not recommended, as the text might be replaced or changed in future, it is always better to use some sys_id or option.

 

If the text is the only method, be sure it is retrieved from a system property and the condition is based on the property not the value of it...

 

Ensure it is case sensitive or not and beware of the special characters (e.g. ê😞 

 

Movement au sein de la même SA != Movement au sein de la meme SA != Movement au sein de la même sa 

_____
This reply is 100 % GlideFather and 0 % AI

Community Alums
Not applicable

hi @MalikB ,

Yes — you can use “is one of” in a UI Policy condition to check if a string field (like a hidden catalog variable) matches any value in a list (e.g., Value1, Value2, Value3).

Just be sure your variable really holds a single string value; if it’s a multi-value field (like list collector), the logic may not work as expected.