( 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 (); } })();
All things ServiceNow... take a look at my channel: https://www.youtube.com/@cloudminus89