var relGlide = new GlideRecord("cmdb_rel_ci);
var queryString = "type=d93304fb0a0a0b78006081a72ef08444^child.ip_address=" +current.variables.ip_address;
relGlide.addEncodedQuery(queryString);
relGlide.query();
workflow.scratchpad.vm_flag = false;
while (relGlide.next()){
//if any CI is operational
if(relGlide.parent.operational_status ==1){
workflow.scratchpad.vm_flag = true;
}
}
change this functionality into catalog client script code and show popup error if this functionality didn't work