- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 08:16 AM
Hello,
We have a field Asset Category (reference field) in cmdb_model_category table, which should only display records where Active(custom field) is true and category Id is 1. [This part is done]
Another field Asset Model, must only display records whose Model Category is same as entered in the above mentioned field by the user. What should be written in its reference qualifier ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:12 AM
try this
// give correct field names
javascript:'model_category=' + current.asset_category;
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
06-02-2025 10:03 AM
Try below code in Asset Model field reference qualifier "model_category=javascript:getRefRecord('asset_category')"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 10:12 AM
try this
// give correct field names
javascript:'model_category=' + current.asset_category;
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