I have one variable in my catalog item named as selectserver and refer to the…
- User
I have one variable in my catalog item named as select_server and refer to the cmdb_ci_server table. my requirement is that if i select any record on the variable it will get the ip_address field value and then compare with the second table with encoded query condition "type = 10^child.ip_address =". then check all parent records with a field operational status =1. if suppose 2 records found with the operational status ==1 out of 5 records then show a popup on catalog item with the names of both record stored in name field and clear the variable of select_server. in servicenow
- Assistant
- User
I have one variable in my catalog item named as select_server and refer to the cmdb_ci_server table. my requirement is that if i select any record on the variable it will get the ip_address field value and then compare with the cmdb_rel_ci table with encoded query condition “type = 10^child.ip_address =”. then check all records operational status shown in parent column in list view. after querying all records if suppose 2 records found with the operational status ==1 out of ALL records then show a popup on catalog item with the names of both records and clear the variable of select_server. in servicenow
- Assistant
- User
I have one variable in my catalog item named as select_server and refer to the cmdb_ci_server table. my requirement is that if i select any record on the variable it will get the ip_address field value and then compare with the cmdb_rel_ci table with encoded query condition “type = 10^child.ip_address =”. then check all records operational status shown in parent column in list view. after querying all records if suppose 2 records found with the operational status ==1 out of ALL records then show a popup on catalog item with the names of both records and clear the variable of select_server. in servicenow workflow i wrote this script . get reference here also to understand var relGlide = new GlideRecord("cmdb_rel_ci); var queryString = "type=d93304fb0a0a0b78006081a72ef08444^child.ip_address=" +current.variables.ip_address; relGlide.addEncodedQuery(queryString); relGlide.query(); while (relGlide.next()){ //if any CI is operational if(relGlide.parent.operational_status ==1){ } }
- Assistant