var alm = new GlideRecord(“almhardware”);…
- User
var alm = new GlideRecord(“alm_hardware”); alm.addEncodedQuery('install_status=1^substatus!='); alm.query(); while(alm.next()){ alm.substatus = '';
- Assistant
It looks like you want to query for records in the
alm_hardwaretable whereinstall_statusis 1 andsubstatusis not empty, and then you want to clear out the for those records. However, your current code snippet is missing a crucial line at the end: . Without this line, the changes you make to the field in the loop will not be saved back to the database.