. How we can update record without updating system generated fieldsupdate sets
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2018 08:46 PM
. How we can update record without updating system generated fields
10 REPLIES 10
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2021 09:44 PM
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();
}