SNOW-CAD Practice Question: Automating application logic with business rules and scripts
A developer writes a business rule that runs on after update. The script intends to send an email notification when the priority changes. Which method should be used to compare the previous and current values?
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
✓
current.priority.changes()
The changes() method on a field object returns true if the field changed. Option B is correct. Option A checks if any field changed. Option C uses direct comparison but is not a method. Option D uses getDisplayValue which compares labels, not values.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
current.getDisplayValue('priority') != previous.getDisplayValue('priority')
Why it's wrong here
This compares display values, which may differ from actual values.
- ✓
current.priority.changes()
Why this is correct
This method returns true exactly when the priority field changes.
- ✗
current.changes()
Why it's wrong here
This returns true if any field changed, not specifically priority.
- ✗
previous.priority != current.priority
Why it's wrong here
While this works, it is not a method and is less readable.
Go deeper
Related to this question
About these practice questions
This SNOW-CAD question is part of Courseiva's 481-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. 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.