ServiceNow®️
GlideRecord
An Overview
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 1
GlideRecord
Mainly used in Server
side scripting
Allows developers to
interact with the
An API to help provide database, create logs,
WHAT IS IT? ways to interact with the and handle other
ServiceNow platform tasks in the back-end
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 2
Example use cases
WHAT IS IT?
Employee Onboarding: Use GlideRecord to create a new user profile when a new employee
joins.
Incident Management: Use GlideRecord to create and track an incident when a user reports an
issue.
Asset Tracking: Use GlideRecord to track company assets and link them to users.
Change Management: Use GlideRecord to document changes made to IT services.
Knowledge Base Articles: Use GlideRecord to create and manage articles in a knowledge base.
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 3
initiate GlideRecord class (create object of a
class)
Syntax var gr = new GlideRecord ('table_name');
eg: var gr = new GlideRecord('incident');
gr.query(); - will perform query on the incident
table
gr.next(); - Will move to the next record
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 4
Demo
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 5
Further information
(ServiceNow Docs)
• Link for additional information:
https://docs.servicenow.com/bundle/washingtondc-api-
reference/page/app-
store/dev_portal/API_reference/GlideSystem/concept/c_GlideSy
stemAPI.html
©️Hibdigital 2024 - All rights reserved - Confidential - N.Sayed 6