Server-Side Scripting

PritamG
Mega Guru

How do you use GlideRecord in server-side scripting?

5 ACCEPTED SOLUTIONS

Viraj Hudlikar
Giga 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

Ankur Bawiskar
Tera Patron
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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @PritamG 

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_le...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

View solution in original post

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

Viraj Hudlikar
Giga 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.

Ankur Bawiskar
Tera Patron
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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @PritamG 

 

https://developer.servicenow.com/dev.do#!/learn/learning-plans/xanadu/new_to_servicenow/app_store_le...

 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************