The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Get undocumented Service-now class information

User150433
Tera Guru

Hi everyone,

I'm not sure how you deal with undocumented service-now classes. I wrote a simple global business rule which will list all the available constructors and methods of service-now classes.

Create this Global business rule with the attached script.

Normally these classes start with "Packages.com". Few interanl service now classes are

Packages.com.glide.schedules.Schedule
Packages.com.glide.glideobject.GlideDateTime

Go to
System Definition --> Scripts - Background

getClassInfo("com.glide.glideobject.GlideDateTime")

Click on "Run script" button.


it will List all constructors and Methods for you.

16 REPLIES 16

gaidem
ServiceNow Employee
ServiceNow Employee

😞 Doesn't work anymore


martijn3
Mega Contributor

I will bless the day that they put something like javadocs online...


cosminux
Giga Contributor

Hi Amit,

Since SN disabled this functionality, do you happen to have a list of methods / constructors for GlideSchedule / Packages.com.glide.schedules.Schedule by any chance?
Or for GlideScheduleDateTimeSpan / Packages.com.glide.schedules.ScheduleDateTimeSpan. What I am trying to do is get the exact "schedule span" matching the date / dates I'm checking against.

Thanks,
Cosmin


cosminux
Giga Contributor

Does anyone else happen to have more info on Packages.com.glide.schedules.Schedule by any chance?


This solution should work

for(var members in new GlideSchedule())
gs.print(members);

Which will list out all public members of GlideSchedule instance. so you can pick getter/setter methods and experiment.

Please let me know.

Thanks
Srinivas Thelu