updateMultiple() example

 see

 https://developer.servicenow.com/dev.do#!/reference/api/quebec/server/no-namespace/c_GlideRecordScopedAPI#r_ScopedGlideRecordUpdateMultiple

 

var grCI=new GlideRecord('cmdb_ci'); grCI.addQuery('discovery_source','SG-DYNATRACE'); grCI.addQuery('operational_status', '1');//--operational //grCI.query(); //gs.print('TOTAL: ' + grCI.getRowCount()); grCI.setValue('operational_status', '2');//--non-operational grCI.updateMultiple();


 

Comments

Popular posts from this blog

GlideRecord setValue

URL link in addInfoMessage