ServiceNow Certified Implementation Specialist – IT Service Management — Question 157
The current status of a problem record is tracked in the State field. Each state has a label, value and constant. This example is for Fix in Progress state:
Label: Fix in Progress -
Value: 104 -
Constant Problem State STATES.FIX IN PROGRESS
Your customer wants to add a prerequisite for moving out of the Fix in Progress state. When you update the script include which value is better to use in the script?
Answer options
- A. 104
- B. "Fix in Progress"
- C. ProblemState.STATES.FIX_IN_PROGRESS
- D. 104.ProblemState.STATES.FIX_IN_PROGRESS
Correct answer: C
Explanation
The correct answer is C, as it directly references the constant for the Fix in Progress state, ensuring that the script uses the defined state properly. Option A just provides the numeric value, which does not give context, while B uses a string that is not the correct constant. Option D is incorrect because it combines a number with a constant in a way that is not valid in scripting.