Can you update a record without updating its system fields(like sys_updated_by, sys_updated_on)?
Yes, you can do it by using a function autoSysFields() in your server side scripting.
Whenever you are updating a record set the autoSysFields() to false
example:
var gr = new GlideRecord('incident');
gr.query();
if(gr.next())
{
gr.autoSysFields(false);
gr.short_description = "ServiceNow" ;
gr.update();
}
Whenever you are updating a record set the autoSysFields() to false
example:
var gr = new GlideRecord('incident');
gr.query();
if(gr.next())
{
gr.autoSysFields(false);
gr.short_description = "ServiceNow" ;
gr.update();
}
Comments
Post a Comment