var gr = new GlideRecord('incident');
gr.addQuery("numberSTARTSWITHMINC_");
gr.query();
gs.info("Number of incidents to update " + gr.getRowCount());
var sla = new SLARepair();
while(gr.next()){
var sysId = gr.getValue('sys_id');
gs.info("Updating incident " + sysId);
sla.repairBySysId(sysId, "incident");
}
Lo mismo pero para CSM
var gr = new GlideRecord('sn_customerservice_case');
gr.addQuery('sys_id','IN','26ac67722546f8d010315bc4bcb68,');
gr.query();
//gs.info("Number of incidents to update " + gr.getRowCount());
var sla = new SLARepair();
while(gr.next()){
var sysId = gr.getValue('sys_id');
gs.info("Updating incident " + sysId);
sla.repairBySysId(sysId, "sn_customerservice_case");
}
No hay comentarios:
Publicar un comentario