Background script execution — jsn

Run GlideScript on the instance from your terminal.

What can JSN do for this ServiceNow workflow? Run GlideScript on the instance from your terminal. JSN gives you a direct terminal workflow instead of requiring the ServiceNow web interface for every inspection or change.
CommandWhat it does
jsn eval --script 'gs.info("hello");'Execute on the instance, session + CSRF handled
jsn eval --script
jsn eval --script 'gs.info("hello");'

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
  ⚠  Default update set in scope [x_8821_test]
  Changes are contained to this scope, but a named
  update set is still recommended for tracking.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Script executed ⚠️ Records without explicit sys_scope will land in global. Use $scopeSysId variable.


  → eval: jsn eval --script '...' — Execute a background script on the ServiceNow instance

Get started

Install, point it at your instance, then run this feature.

npm install -g @jacebenson/jsn
jsn setup
jsn eval --script 'gs.info("hello");'
Full setup guide & skill docs →

← All features