How to query out fields that have an empty value with GlideRecord?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-12-2019 06:47 AM
I tried this and it didn't work
current.addQuery('location', '!=', "");
current.addQuery('cmdb_ci', '!=', "");
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2024 10:49 PM
Looks like you have old sys id's stored in the CI field - so they are not empty - they have a sys_id that no longer has a refrence so using like NULL or isEmpty will not work here.