Glidequery Part 1 - reading multiple records

PHOTO EMBED

Thu Dec 09 2021 11:36:06 GMT+0000 (Coordinated Universal Time)

Saved by @felipems

new GlideQuery('task')
    .where('priority', 1)
    .select('short_description', 'opened_at')
    .forEach(function (task) {
        gs.info('Task "' + task.short_description + '" was opened at ' + task.opened_at);
   });
// Task "Reset my password" was opened at 2020-09-17 22:50:23
// Task "Install new Cisco" was opened at 2020-03-29 23:14:14
// ...
content_copyCOPY

https://developer.servicenow.com/blog.do?p