GlideRecord

GlideRecord is a special Java class exposed to enable developers to perform database operations by writing simple JavaScript code that executes on the server side. The GlideRecord class can be used to perform insert, update, delete, or query operations on the database. It can also be used to perform complex join queries, bulk delete, and update.

To create a GlideRecord object, we must specify the table we want to retrieve the data from. In the following example, passing the name of the table in the constructor of the object will create a GlideRecord object for the incident table:

var gr = new GlideRecord("incident"); 

A GlideRecord returned from the server is made up of rows of records and columns. Let us go through a list of the most commonly used methods available in the GlideRecord class.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.98.108