thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Business Platforms & EA · Intermediate

GlideRecord

Server-side API for querying and manipulating database records in ServiceNow scripts.

Definition

GlideRecord methods include addQuery, addEncodedQuery, query, next, get, insert, update and deleteRecord. GlideAggregate is used for counts and aggregates.

Example

var gr = new GlideRecord('incident'); gr.addQuery('active', true); gr.query(); while (gr.next()) { ... }

Exam tip

Use GlideAggregate rather than looping GlideRecord to count records.

Related terms