The CreatorCon Call for Content is officially open! Get started here.

Glide Record

soniya patil
Tera Contributor

How to write glide record 

category of software by using update method in incident 

2 REPLIES 2

Mohith Devatte
Tera Sage
Tera Sage

Hello @soniya patil ,

you can use this script 

var gr = new GlideRecord('incident');
gr.addQuery('category','software');
gr.query();
while(gr.next())
{
gr.your_field_name ="your_values";
gr.update();
}

 

Hope this helps 

Mark the answer correct if this helps you 

Thanks

Mark Roethof
Tera Patron
Tera Patron

Hi there,

 

I've noticed that you are asking multiple questions regarding basic GlideRecord scripting. Can you share a bit more background about your questions? Sounds to me that you are after learning GlideRecord basics? Maybe for a certain purpose? Etc.. If we have a bit more background to your question, than we might be able to help you better and perhaps give you some good resources instead of just pasting some scripting (which can be pretty dangerous to execute!).

 

Kind regards,

 

Mark Roethof

Independent ServiceNow Consultant

10x ServiceNow MVP

---

 

~444 Articles, Blogs, Videos, Podcasts, Share projects - Experiences from the field

LinkedIn