Seems like your gr is not defined.
First-line should have been:
var gr = new GlideRecord ('sys_user');
and then, as peter pointed out,
if(gr.next) should be - if(gr.next())
Thanks,
Swarnadip
Hi Ravi,Here is a list of integrations that may be built in ServiceNow for populating your cmdb:AltirisMicrosoft SCCMCentennialEMC nLayersEMC Smarts ADMSalesforce.comNimsoft IntegrationLANDeskYou can go through the ServiceNow discovery process here -...
Hi Teresa,I think you are trying to add a many-to-many relationship between Incident and Consumables. These steps should help:The Many to Many Definitions [sys_m2m] table allows administrators to create custom many-to-many relationships.In the naviga...