- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 09:08 AM
How to glide record location table and print all locations whose latitude are not empty and greater than 50
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 06:13 PM
Hi @Helan
You can use the below script:
var locvalue=new GlideRecord('cmn_location');
locvalue.addEncodedQuery('latitudeISNOTEMPTY^latitude>50');
locvalue.query();
while(locvalue.next()){
gs.print("Locations are"+locvalue.name);
}
You can try it in background script and you can change it based upon your need
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2025 06:13 PM
Hi @Helan
You can use the below script:
var locvalue=new GlideRecord('cmn_location');
locvalue.addEncodedQuery('latitudeISNOTEMPTY^latitude>50');
locvalue.query();
while(locvalue.next()){
gs.print("Locations are"+locvalue.name);
}
You can try it in background script and you can change it based upon your need
Thanks and Regards
Sai Venkatesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 01:01 AM
Thank you, @SAI VENKATESH @! This worked for me
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2025 06:38 AM
Hi @Helan
can you mark the solution as correct so that it can be helpful for others.
Thanks and Regards
Sai venkatesh