Brad Tilton
ServiceNow Employee

You're looking at the wrong table for the tasks. It should be sc_task rather than sc_catalog. Also, for your addquery I would force the sys_id to a string, so rzero.sys_id.toString()