Pradyumna Das
Tera Expert

We can get all the functions created in the protected script include using below code.

var instance=new scriptIncludeName(); /**name of script include**/
var list=[];
for(var prop in instance){
    gs.info(prop);
     var temp=instance[prop] instanceof Function ? instance[prop] :JSON.stringify( instance[prop]);
     list.push(prop+": "+temp );
}
gs.info("\n"+list.join("\n"));

 

Note: If the script include extends any other class, we will be not able to view that using the above script.

 

Please mark it helpful if you feel it helps you in any manner. 

 

Thanks,

Pradyumna Das

Comments
Chris D
Mega Sage

Thanks! This helped me see the code behind OmitSubscriptionUtility to understand how an ootb sysevent_email_action read ACL works. Funny enough, this script include simply calls the global.omitRecipients Scripted Extension which is visible AND editable... no idea why this script would be protected but ¯\_(ツ)_/¯ at least I know what it's doing now

Version history
Last update:
‎04-18-2024 10:12 PM
Updated by:
Contributors