Can you past this as the replace the return statement from 

var obj = {};
obj.sysid = newIdeaSysId;

 
return JSON.stringify(obj);

 

To this :

 

return {
 'sys_id': newIdeaSysId;

 };

 

Please mark my answer correct and helpful.

Thanks,

Cb