Calling Script include in reference qualifier

anmolvishwa
Tera Contributor

Hello everyone,

i am not able to see the see the user which i set in script include.

Can anyone help ?

 

Script include :

Name : CZTest

API Name : global.CZTest

Code : 

var CZTest = Class.create();
CZTest.prototype = Object.extendsObject(AbstractAjaxProcessor, {
   
    getValidUsers: function() {
        var array = ["62826bf03710200044e0bfc8bcbe5df1", "5408091a3b100300e81d47b334efc452"];
        return array;
    },

    type: 'CZTest'
}); 
 
Reference Qualifier : javascript:new CZTest().getValidUsers();
5 REPLIES 5

Debasis Pati
Tera Guru

While creating the script include when you clicked on save or submit it must have asked you to put roles.
Please check the user with whom you are trying to test this he/she is having that role.
if you do not want any roles please go the acl and remove the roles for the script include.

Regards,
Debasis