- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-06-2015 08:07 AM
Hi,
Can aynone help me out in identifying the error in the following code? My expectation is function should return value , but it is returning value
var IreturnInc = Class.create();
IreturnInc.prototype = Object.extendsObject(AbstractAjaxProcessor, {
IreturnInc : function()
{
var incref = new GlideRecord('incident');
incref.query();
if(incref.next())
return incref.number;
},
type: 'IreturnInc'
});
Please help.
Regards,
Anil Karamsetty
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2015 05:06 AM
Thanks All for your Coordination. Code is working now. but surprisingly i did not make any changes to the code , i copied the code from my post and pasted in demo instance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2015 02:19 AM
Hi Anil,
Can you replicate this in any serviceNow demo instances so that we can take a look.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2015 05:06 AM
Thanks All for your Coordination. Code is working now. but surprisingly i did not make any changes to the code , i copied the code from my post and pasted in demo instance.