var rollabletable = findObjs({ _type: "rollabletable", name: tableName});
if (rollabletable.length == 0) { createObj("rollabletable", {name: tableName}); rollabletable = findObjs({ _type: "rollabletable", name: tableName}); } var rollabletableID = rollabletable[0].get("_id"); If that is followed by: log(rollabletableID) return I get the ID as expect... If I try to do anything else with the ID... TypeError: Cannot call method 'get' of undefined at evalmachine. :426:45 at Function._.each._.forEach (/home/symbly/www/d20-api-server/sandcastle/node_modules/underscore/underscore.js:81:22) at checkOrGetTableData (evalmachine. :424:7) at setupDungeonGenerator (evalmachine. :384:34) at Sandbox. (evalmachine. :312:40) at eval ( What the heck am I missing here?