Pradyumna Das
Tera Expert
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 04-18-2024 10:12 PM
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
- 969 Views
Comments

Chris D
Mega Sage
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
an hour ago
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