Script Include calling Issue in Report

Not applicable

Not able to get the script include values in the report
Values is showing as NULL

JAYESHKUMARYA_1-1742449049994.pngJAYESHKUMARYA_2-1742449062777.png

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'
});