nerdexam
ServiceNow

CAD · Question #215

Which objects can you use in a Scheduled Script Execution (Scheduled Job) script?

The correct answer is C. GlideSystem and GlideRecord. Scheduled Script Executions run server-side on a timer without being triggered by a specific record event, so the 'current' object (which represents the triggering record in Business Rules) is not available. GlideRecord is available to query and manipulate database records…

Submitted by yuriko_h· Apr 18, 2026Application Automation

Question

Which objects can you use in a Scheduled Script Execution (Scheduled Job) script?

Options

  • AGlideRecord and current
  • BGlideUser and GlideRecord
  • CGlideSystem and GlideRecord
  • DGlideSystem and current

How the community answered

(27 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    93% (25)

Explanation

Scheduled Script Executions run server-side on a timer without being triggered by a specific record event, so the 'current' object (which represents the triggering record in Business Rules) is not available. GlideRecord is available to query and manipulate database records programmatically. GlideSystem (accessed via 'gs') is also available for utilities like logging (gs.log, gs.info), date/time functions, and user context. GlideUser is not a standalone scripting object in this context; user information is accessed through GlideSystem methods such as gs.getUserID() or gs.getUserName().

Topics

#Scheduled Script Execution#Server-side Scripting#GlideSystem#GlideRecord

Community Discussion

No community discussion yet for this question.

Full CAD Practice