Share
What is a ServiceNow GlideRecord, and how is it used?
Question
can help me with this question
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
can help me with this question
Answer ( 1 )
GlideRecord is a server-side API in ServiceNow used to query and manipulate records in the database.
Example:
Retrieve incidents assigned to a user:
var gr = new GlideRecord(‘incident’);
gr.addQuery(‘assigned_to’, ‘John Doe’);
gr.query();
while (gr.next()) {
gs.info(gr.number);
}