Scheduled script execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2026 02:01 AM
Which objects can you use in a Scheduled Script Execution (Scheduled Job)
script?
A.GlideRecord and current
B.GlideUser and GlideRecord
C.GlideSystem and GlideRecord
D.GlideSystem and current
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2026 04:25 PM
Hi @RevathiB
Commonly Used Objects and Classes:
GlideSystem (gs): Used for logging, system information, and event triggering (e.g., gs.log(), gs.getProperty(),gs.getUserID
(),gs.eventQueue()).
GlideRecord: Used to query, update, or delete records across any table.
GlideDateTime / GlideDate: Used for handling date and time calculations, which are crucial for scheduling logic.
Objects NOT Available:
current: Because scheduled jobs are not triggered by a specific record update, the current object is not defined.
previous: Similar to current, this is not available.
So,the answer is C
Regards,
Poonkodi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2026 05:19 PM
The correct answer is:
C. GlideSystem and GlideRecord ✅
Explanation:
In a Scheduled Script Execution (Scheduled Job), there is no current object, because the script is not running on a specific record. You can use:
GlideRecord to query or update records in any table.
GlideSystem (gs) for logging, messages, and utility functions.
current is only available in scripts tied to a specific record, like Business Rules or Script Actions, not in Scheduled Jobs.
So the only correct combination is GlideSystem and GlideRecord.
Was this explanation helpful? If so, please mark it as correct! ✅
- Carlos Petrucio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2026 08:41 PM
Hi @RevathiB
C. GlideSystem and GlideRecord is correct
GlideSystem (gs) is available
Used for logging, date/time operations, system properties, and user/session information
Example: gs.info(), gs.getProperty()
GlideRecord is available
Used to query, insert, update, and delete records in any table
var gr = new GlideRecord('incident');
gr.query();
Why the other options are incorrect
A. GlideRecord and current
current is not available in Scheduled Jobs.B. GlideUser and GlideRecord
GlideUser is not a standard object used in Scheduled Script Executions.D. GlideSystem and current
Again, current is not available.If this response helps you solve the issue, please mark it as the Accepted Solution

