Dynamic Filter Options for Non-Reference Fields

mikkojuola
Giga Guru

Hello Community!

 

I have one, hopefully simple, question related to Condition Builder. In ServiceNow Docs, the Dynamic Filter Options are described in a way, that those can (only) be used with Reference fields: https://docs.servicenow.com/bundle/xanadu-platform-user-interface/page/use/using-lists/task/t_Dynami...

 

But, when looking at the form, one can also select other Field Types, like a String. Does anyone know, if Dynamic Filter Options can be used for other than Reference fields? (It seems not)

 

mikkojuola_0-1724154890964.png

 

Thank you all for your input, already in advance 🙂

 

Cheers,

--Mikko

 

2 REPLIES 2

Mark Manders
Mega Patron

In theory you can, but what are you looking for? 

You can check on the OOB examples that use 'string' as field type. You will see numbers and names coming by a lot. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Hi Mark,

 

I'm looking for "scripted conditions" that check for different patterns or even a simple length of the text input.  For example "list all business applications where description is less than 100 characters long" or "list of servers that doesn't match with a particular naming convention (pattern/regex)."

 

We have our own Store app, which utilizes Condition Builder extensively. We would like to use this "Dynamic Filter Option" since it would be an out-of-the-box way of adding scripts to conditions.

 

So, how to turn "in theory" into "in practice" 🙂