Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 10:38 PM
Not able to get the script include values in the report
Values is showing as NULL
Code Snippet :
var test = Class.create();
test.prototype = Object.extendsObject(AbstractAjaxProcessor, {
getMyid: function() {
var arr = [];
var gr = new GlideRecord('incident');
gr.addQuery('sys_id', '57af7aec73d423002728660c4cf6a71c');
gr.query();
if (gr.next()) {
// gs.info("Incident number: " + gr.number);
arr.push(gr.sys_id.toString());
}
return arr;
},
type: 'test'
});
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 11:10 PM
Hi @JAYESH KUMAR YA ,
Check the Sandbox enabled checkbox on the script include and try
Please mark my answer as helpful/correct if it resolves your query.
Regards,
Chaitanya
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 11:21 PM
it should work fine with approach shared by @SanjivMeher
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader