Server-Side Scripting

PritamG
Mega Guru

How do you use GlideRecord in server-side scripting?

5 ACCEPTED SOLUTIONS

Viraj Hudlikar
Tera Sage

Hello @PritamG 

 

Check this GlideRecord | ServiceNow Developers

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

 

Thanks & Regards
Viraj Hudlikar.

View solution in original post

Sandeep Rajput
Tera Patron
In this video you will learn about GlideRecord which is used to perform database operations in ServiceNow like querying records from a table, insert records in a table, update records in a table and delete records from a table in ServiceNow. You will learn about following: - What is GlideRecord in

Ankur Bawiskar
Tera Patron

@PritamG 

there are lot of resources in docs, community, youtube about this

Did you go through that?

Are you looking for specific requirement or stuck somewhere?

If my response helped please mark it correct and close the thread so that it benefits future readers.

View solution in original post

Dr Atul - LNG
Tera Patron
Learn how to build configurable workspaces from scratch in ServiceNow in this informative session. Whether you're working with App Engine Studio or starting fresh, we provide essential steps and use cases for creating custom workspaces that meet your needs. #Servicenow #Workspaces #AppEngineStudio

vishwajeet5550
Mega Guru

GlideRecord is a powerful server-side API in ServiceNow used to query, insert, update, and delete records from the database. It is commonly used in business rules, script includes, scheduled jobs, and background scripts.

var gr = new GlideRecord('incident'); // Specify the table name
gr.addQuery('priority', 1); 
gr.query(); 

while (gr.next()) {  
    gs.info('Incident Number: ' + gr.number);
}

View solution in original post

5 REPLIES 5

vishwajeet5550
Mega Guru

GlideRecord is a powerful server-side API in ServiceNow used to query, insert, update, and delete records from the database. It is commonly used in business rules, script includes, scheduled jobs, and background scripts.

var gr = new GlideRecord('incident'); // Specify the table name
gr.addQuery('priority', 1); 
gr.query(); 

while (gr.next()) {  
    gs.info('Incident Number: ' + gr.number);
}