Courseiva

SNOW-CAD Practice Question: Automating application logic with business rules and scripts

A developer needs to create a business rule that runs only when the 'State' field of an Incident changes from 'New' to 'In Progress'. Which condition script should be used?

⚠ Common exam trap

The trap here is that candidates often pick Option D thinking `changesTo('In Progress')` alone is sufficient, forgetting that it does not restrict the previous state, so the rule would fire for any transition into 'In Progress', not just from 'New'.

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.state.changes() && current.state.changesFrom('New')

It uses both `current.state.changes()` to verify the field has changed and `current.state.changesFrom('New')` to ensure the previous value was 'New'. This combination precisely captures the transition from 'New' to any other state, which when combined with the business rule's 'when to run' condition (set to 'In Progress' in the rule's filter or script), ensures the rule fires only when the state changes from 'New' to 'In Progress'.

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.state.changes() && current.state.changesFrom('New')

    Why this is correct

    This correctly checks that the state changed and the previous value was 'New'.

  • current.state == 'New' && current.state.changesTo('In Progress')

    Why it's wrong here

    current.state == 'New' checks the current value, which after update is 'In Progress', so condition fails.

  • current.state.changes() && previous.state == 'New'

    Why it's wrong here

    previous() is deprecated; use changesFrom() instead.

  • current.state.changesTo('In Progress')

    Why it's wrong here

    This does not check that the previous state was 'New'; it could change from any state.

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 →

How Courseiva writes practice questions · Editorial policy

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.