How to update custom fields without update system fields.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 01:40 PM
Here below I pasted the code for your reference,
var gr = new GlideRecord('incident');
gr.addQuery('number','IN00....');
gr.query();
if(gr.next())
{
gr.short_description = "my laptop is not working";
}
1 REPLY 1

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2024 02:25 PM
You can use gr.autoSysFields(false) to update fields without update system fields.
var gr = new GlideRecord('incident');
gr.addQuery('number','IN00....');
gr.query();
if(gr.next())
{
gr.short_description = "my laptop is not working";
gr.autoSysFields(false);
gr.update();
}
Please mark this response as correct or helpful if it assisted you with your question.