Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-23-2025 08:45 AM
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 12:12 AM
Hi @Helan
Try the below script.
var locationGr = new GlideRecord('cmn_location');
locationGr.addNotNullQuery('latitude');
locationGr.addQuery('latitude', '>', 50);
locationGr.query();
while (locationGr.next()) {
gs.info(locationGr.getValue('name'));
}
Regards,
Siva
5 REPLIES 5

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 02:18 AM - edited ‎05-24-2025 02:18 AM
Below script should work :
var loc = new GlideRecord("cmn_location");
loc.addEncodedQuery("latitude>50");
loc.query();
while (loc.next()){
gs.info(loc.getDisplayValue());
}
Accept the solution and mark as helpful if it does, to benefit future readers.
Regards,
Sumanth