wadeb
Giga Contributor

Ben,


I looks like your first list is not specifying what table to query.   You have "var gr = new GlideRecord('table'); "   you will need to specify what table to query.   Below is an example for querying the "Requested Item" table



var gr = new GlideRecord('sc_req_item');