Courseiva

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

A developer writes a business rule to run on 'before' update of the Incident table. The rule sets a short description only if it is empty. However, the short description is never set even when it's empty. What is the most likely cause?

⚠ Common exam trap

Many candidates confuse `gs.setValue()` with a valid method, not realizing that `gs` is a system-level object without record manipulation capabilities, and that `current.setValue()` is the required approach for modifying fields on the current record.

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 developer used gs.setValue() instead of current.setValue().

In ServiceNow business rules, `gs.setValue()` is a GlideSystem method that does not exist for setting field values on the current record. The proper method is `current.setValue()`, which directly modifies the field on the current GlideRecord object. Using `gs.setValue()` would result in no change to the short description, even if the condition is met.

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 developer used gs.setValue() instead of current.setValue().

    Why this is correct

    gs.setValue() is not a valid method; current.setValue() must be used to set field values in business rules.

  • The business rule runs after the database update.

    Why it's wrong here

    Business rules can run before or after; the issue is not timing but the method used to set the field.

  • The condition 'short_description IS EMPTY' is evaluated on the old value.

    Why it's wrong here

    The condition checks the current record's value, which is empty before the update.

  • The business rule is set to run on insert only.

    Why it's wrong here

    The rule is set to run on update, as described.

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.