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…
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)- A4% (1)
- B4% (1)
- C93% (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
Community Discussion
No community discussion yet for this question.