Scheduled script execution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
16 hours ago
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
an hour ago
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
26m ago
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
