GlideSystem ServiceNow

GlideSystem

Use the GlideSystem API to, for example:
  • Find information about the currently logged in user
  • Log messages (debug, error, warning, info)
  • Add messages to pages
  • Generate events
  • Execute scheduled jobs
  • And more…
See the GlideSystem API reference for a complete list of methods.
To use methods from the GlideSystem class, use the gs object:
gs.<method>
Examine the example script:
Script using GlideSystem methods
This sample script writes one message to the log and two messages to the screen:
The log message.
The messages written to the screen.