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 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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 01:00 AM
Thank you @J Siva ! This worked
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 06:35 AM
@Helan Glad it helped
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-24-2025 01:06 AM
Thank you! This worked