SNOW-CAD Practice Question: Automating application logic with business rules and scripts
A developer creates a script include named 'Utils' with a function that uses gs.log('message'). When called from a business rule on the incident table, the log is written. However, when called from a scheduled job in the same scope, no log appears. What could be the reason?
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
The script include is not global.
If the script include is not global (i.e., it is scoped to a specific application), it may not be accessible from all execution contexts. Even though the scheduled job is defined in the same scope, scheduled jobs can run under a different context (such as the global scope) or have additional restrictions that prevent access to non-global script includes. This explains why the business rule works (as it runs in the application scope) but the scheduled job does not. Option A is incorrect because log level settings do not affect script include accessibility—they control whether log messages are displayed. Option B is incorrect because the scenario states the scheduled job is in the same scope. Option D is incorrect because user context does not affect script include visibility; it affects record access.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The scheduled job's log level is set to 'errors only'.
Why it's wrong here
Incorrect. Log level settings control whether log messages appear, not the accessibility of the script include.
- ✗
The business rule runs in the same scope but the scheduled job runs in a different scope.
Why it's wrong here
Incorrect. The scenario states both run in the same scope.
- ✓
The script include is not global.
Why this is correct
Correct. If the script include is not global, it may not be accessible from scheduled jobs even if in the same scope, because scheduled jobs can run in a different context.
- ✗
The scheduled job runs with a different user context.
Why it's wrong here
Incorrect. User context does not affect script include visibility; it affects record access.
Go deeper
Related to this question
About these practice questions
One of 481 original SNOW-CAD practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This SNOW-CAD practice question is part of Courseiva's free ServiceNow certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the SNOW-CAD exam.