We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

. How we can update record without updating system generated fieldsupdate sets

Narayana RC
Tera Contributor

. How we can update record without updating system generated fields

10 REPLIES 10

priyanka garad
Giga Expert

hi,

if you want to update the record without updating the system field(like sys_updated_by, sys_updated_on) then use autoSysFields(false); or setWorkflow(false);

ex:-

/**When assignment group changes then update the task SLA group to current assignment group .​**/
​var gr = new GlideRecord('task_sla');
gr.addQuery('task',current.sys_id);
gr.query();
while(gr.next()){
gr.u_groups = current.u_assignment_group;
gr.autoSysFields(false);
gr.update();
}