- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2025 08:44 AM
Why isn't this reference qualifier not working?
javascript:'sys_id!=NULL^ORDERBYu_order'
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 07:10 AM
Thanks to everyone for their suggestions.
I finally got this working.
I changed it back to a "Simple" Reference Qualier.
Then I added "ref_ac_order_by=u_order" in the Variable attribute field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2025 07:19 AM
Hi @Joe Taylor
what you accepted as solution is exactly what I replied above:
and
I'm really glad that it solved your issue, but now it'd be fair to accept my replies as solution, not your own... you basically did what I've been saying the whole time. :))
Thank you for considering to accept my solution. If not, then I'm happy you solved your issue but again it's not fair and actually against the Community's code of conduct.
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2025 08:49 AM - edited 08-14-2025 08:54 AM
Hi @Joe Taylor
you can remove the sorting and keep it as "javascript:'sys_id!=NULL". If your reference qualifier is so simple you can use the condition builder...
Please provide more details... What does it return? and what do you want to return it? :))
EDIT:
Note: javascript + colon (:) has transcript to javascript:
it's a problem of this Community, not ServiceNow as such but be careful if copy pasting back to ServiceNow
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2025 08:52 AM
@Joe Taylor what's your ambition?
Your current ref qualifier could be either:
or
But records whose sys ID is NULL means they don't exist so I don't think your condition could be EVER valid... it will always evaluate all the records in the referencing table.
Please review the condition or explain your requirement and I'll help you build it better, the current condition doesn't make any sense
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2025 09:04 AM
Here's my table.
It only has 2 custom columns.
I just want to sort by Order in my reference qualifier. That's it. I've used this before without any issues:
javascript: 'ORDERBYu_order';
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-14-2025 09:05 AM