Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-26-2025 04:46 AM
GOTO keyword won't work in GlideRecord
try this and use relative date filter
var gr = new GlideRecord('your_table');
var now = new GlideDateTime();
var last24 = new GlideDateTime();
last24.addHoursUTC(-24);
gr.addEncodedQuery('sys_class_name=incident^ORsys_class_name=problem^sys_updated_by=' + gs.getUserName() + '^sys_updated_on>=' + last24.getValue());
gr.query();
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader