var gr = new GlideRecord('task_sla');
gr.addQuery('task', '17acfee21b71181021022026ec4bcb4e');
gr.addQuery('stage','in_progress');
gr.query();
while(gr.next()){
gr.addQuery('stage','in_progress');
gr.query();
while(gr.next()){
gr.autoSysFields(false);
gr.setWorkflow(false);
gr.stage = 'completed';
gr.update();
}
gr.setWorkflow(false);
gr.stage = 'completed';
gr.update();
}
No hay comentarios:
Publicar un comentario