- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 05:51 AM
In Servicenow, which API is used to perform server-side database operations?
A. GlideRecord API
B. GlideSystem API
C. GlideAjax API
D. GlideForm API
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 05:59 AM - edited ‎06-21-2024 07:31 AM
Hi @KiranmaiP,
The answer could differ depending on how the question is written and context, but given what you've written and if I'm only selecting one - A.
See below for the answer why and also what B and D offers but based on the specific question doesn't quite fit.
A - The GlideRecord API is used for database operations.
The GlideRecord API is the primary means of interfacing with the database on the server-side code.
B - The GlideSystem API, which is referred to by the variable name gs in any server-side JavaScript, provides a number of convenient methods to get information about the system, the current logged in user, and date/time information.
D - The GlideAjax class enables a client script to call server-side code in a script include.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 08:57 AM
Hi @KiranmaiP ,
The correct options are:
A. GlideRecord API
B. GlideSystem API
ServiceNow Doc reference: API Reference
GlideSystem:
The scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc.
GlideRecord:
Scoped GlideRecord is used for database operations.
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 05:59 AM - edited ‎06-21-2024 07:31 AM
Hi @KiranmaiP,
The answer could differ depending on how the question is written and context, but given what you've written and if I'm only selecting one - A.
See below for the answer why and also what B and D offers but based on the specific question doesn't quite fit.
A - The GlideRecord API is used for database operations.
The GlideRecord API is the primary means of interfacing with the database on the server-side code.
B - The GlideSystem API, which is referred to by the variable name gs in any server-side JavaScript, provides a number of convenient methods to get information about the system, the current logged in user, and date/time information.
D - The GlideAjax class enables a client script to call server-side code in a script include.
To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Kudos.
Thanks, Robbie

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 06:11 AM
Hi @KiranmaiP ,
Option A and B
A. GlideRecord API
B. GlideSystem API
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-21-2024 08:57 AM
Hi @KiranmaiP ,
The correct options are:
A. GlideRecord API
B. GlideSystem API
ServiceNow Doc reference: API Reference
GlideSystem:
The scoped GlideSystem (referred to by the variable name 'gs' in any server-side JavaScript) API provides a number of convenient methods to get information about the system, the current logged in user, etc.
GlideRecord:
Scoped GlideRecord is used for database operations.
Mark this as Helpful / Accept the Solution if this helps
Mark this as Helpful / Accept the Solution if this helps.