Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam CAD topic 1 question 60 discussion

Actual exam question from ServiceNow's CAD
Question #: 60
Topic #: 1
[All CAD Questions]

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
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
https://docs.servicenow.com/bundle/orlando-application-development/page/script/useful-scripts/concept/c_UsefulSchedulingScripts.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Ashtan1985
Highly Voted 2 years ago
Correct answer is C. You can only use server side scripting in Scheduled Jobs.
upvoted 6 times
...
aandooo
Most Recent 8 months ago
Selected Answer: C
there is no user nor current in scheduled job
upvoted 2 times
...
Alice_Steele
1 year, 1 month ago
Selected Answer: C
it has no access to current: https://developer.servicenow.com/dev.do#!/learn/learning-plans/tokyo/servicenow_administrator/app_store_learnv2_automatingapps_tokyo_scheduled_script_execution_scripts
upvoted 3 times
...
Mike49707
1 year, 2 months ago
Selected Answer: C
C is correct - you don't have a user or current in a scheduled job
upvoted 2 times
...
kapshawn
1 year, 3 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
Ghostrunner
1 year, 3 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
SNAngler
1 year, 4 months ago
Selected Answer: C
C is correct
upvoted 2 times
...
Bajel
1 year, 8 months ago
Correct answer is C refer to https://developer.servicenow.com/dev.do#!/learn/learning-plans/quebec/servicenow_administrator/app_store_learnv2_automatingapps_quebec_scheduled_script_execution_scripts
upvoted 2 times
...
Bayoubeot
1 year, 8 months ago
Selected Answer: C
Correct answer is C the code examples in the book use the GlideRecord and GlideSystem
upvoted 3 times
...
ParagSanyashiv
2 years, 3 months ago
Selected Answer: D
Correct answer is D, as the gs object and current object can be directly used, for rest other you need to initialize the class into the object.
upvoted 2 times
sstest2
4 months, 2 weeks ago
D is incorrect. "Scheduled Script Executions are not associated with records and have no access to the previous or current objects used by many other server-side script types."
upvoted 1 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...