Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Issue with Choice values

sainath3
Giga Guru

Hi Team,

 

In incident table we have a choice field "Related to".

there is duplicate choice label as bellow:

 

LabelValue
Cloud computingCloud
Cloud computingCloud computing

 

There are 50 records on each choice label.

Requirement is to change the value to Cloud for both.

After making the changes:

LabelValue
Cloud computingCloud
Cloud computingCloud

 

After making the change, in list view field value is showing in blue color.

After running below script we are getting : Cloud computing instead of Cloud.

 

var gr=new GlideRecord('incident');
gr.addEncodedQuery('numberSTARTSWITHINC97384');
gr.query();
if(gr.next()){
    gs.info(gr.u_related_to);
}
Output: Cloud computing
 
Can anyone help me here
5 REPLIES 5

swathisarang98
Giga Sage

Hi @sainath3 ,

 

can you navigate "Related to" and check whether Cloud value is present or not because if you are getting blue value in list view it means that the field is set with a invalid/missing choice value, please refer the below support article,

Choice values colored blue in list view 

 

Please mark this comment as Correct Answer/Helpful if it helped you.

Regards,

Swathi Sarang