Fix script bulk update bypassing workflow/engine/last updated fields

 (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

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage