(function setProblemOnHold(){
var grProblem = new GlideRecord("problem");
grProblem.addEncodedQuery("short_descriptionLIKEknown error");
grProblem.query();
if (grProblem.getRowCount() == 140){
grProblem.setWorkflow(false);
grProblem.setUseEngines(false);
grProblem.autoSysFields(false);
grProblem.setValue("known_error",true);
grProblem.updateMultiple();
}
})();
Comments
Post a Comment