Wednesday, March 28, 2018

Query a reference field ; ServiceNow

In the below table(discovery_range_item_ip) item_parent is a reference field;


var range_table=new GlideRecord('discovery_range_item_ip');
range_table.addQuery('item_parent.name', "JDC_AIX1_RANGE");
range_table.query();
gs.log('Row Count'+ range_table.getRowCount());

No comments:

Post a Comment

Discovery troubleshooting | Error messages

  Discovery troubleshooting | Error messages - Support and Troubleshooting (servicenow.com) Description Learn how to resolve common Discover...