Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

How to build and use Name-Value Pair in filter conditions?

Bhojraj Chauhan
Tera Contributor

I have a Name-Value Pair I want to know if there is any effective way to use it in filter conditions in Business rule.

BhojrajChauhan_1-1753944468196.png


Its limited to is, is not.

BhojrajChauhan_2-1753944604737.png

Is there an alternative way to use each Name individually, example: Monitor is Samsung. I tried it in table level where I can change the url to use "CONTAINS". 

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Bhojraj Chauhan 

not possible directly to use.

you can use json manipulation within script and then check if matches.

Name-value pair holds JSON, what comparison you want to do?

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

Hi, I wanted to compare each key to its value in filter conditions inside JSON. I achieved this by creating a script include(GlideRecord with query containing "like" ex: definitionsLIKEMonitor;) and calling the function to return the sys_ids of the same, but its not much optimized and straightfoward. I wanted a straightforward path for the same. Can you suggest anyother field apart from Name-Value pairs if possible to use JSON Format accordingly.