Glide Record
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-01-2023 03:55 AM
How to write glide record
category of software by using update method in incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-01-2023 04:04 AM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ā09-01-2023 06:14 AM
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