ServiceNow default last updated by to 'system'
using autoSysFields(false)
var grAcc=new GlideRecord('<your table name>');
if (grAcc.get('sys_id', '9b66bd7f97a6f510df843a30015<your record sysid>')){
grAcc.status='2';
grAcc.sys_updated_by='system';
grAcc.autoSysFields(false);
//grAcc.status='Missing';
gs.info(grAcc.update());
}
Comments
Post a Comment