where can i find the functions of a GlideScriptable object?

joaosantos
Mega Expert

In my case i want to see what is inside GlideECBDownloader, what function it has and what do they do

5 REPLIES 5

i was already there but what i want is to see in servicenow the code in one of those script objects


Yes, I see what you mean.   Since the instances aren't constructed, but only obtained by traversal, it's hard to find them by searching sys_script_include.script, sys_update_xml.payload, etc.


I ran this background script:



var o = new GlideECBDownloader();


for (f in o) {


  gs.print(f);


}



and I got this:



*** Script: getError


*** Script: insertRates


*** Script: getClass


*** Script: wait


*** Script: download


*** Script: hashCode


*** Script: equals


*** Script: notifyAll


*** Script: toString


*** Script: error


*** Script: class


*** Script: notify



This wasn't as helpful:



var o = GlideECBDownloader;


for (f in o) {


  gs.print(f);


}