should be results[j].getValue({name: "itemid"});
# suitescript
j
should be results[j].getValue({name: "itemid"});