How to build and use Name-Value Pair in filter conditions?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2025 11:53 PM
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.
Its limited to is, is not.
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".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2025 12:03 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2025 12:12 AM
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.