Server- side API

KiranmaiP
Tera Contributor

In Servicenow, which API is used to perform server-side database operations?
A. GlideRecord API
B. GlideSystem API
C. GlideAjax API

D. GlideForm API

2 ACCEPTED SOLUTIONS

Robbie
Kilo Patron
Kilo Patron

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

View solution in original post

SN_Learn
Kilo Patron
Kilo Patron

Hi @KiranmaiP ,

 

The correct options are:

 

A. GlideRecord API
B. GlideSystem API

 

ServiceNow Doc referenceAPI 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.

View solution in original post

3 REPLIES 3

Robbie
Kilo Patron
Kilo Patron

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

Community Alums
Not applicable

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

 

SN_Learn
Kilo Patron
Kilo Patron

Hi @KiranmaiP ,

 

The correct options are:

 

A. GlideRecord API
B. GlideSystem API

 

ServiceNow Doc referenceAPI 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.