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.

Multiple Choice display variable name label of an choice workflow

Jeff W NZAO B
Mega Guru

Hello guys, 

 

Please someone to help with an issue. I would like to display the label of one of my  multiple choice in the RIMT and Task description. 

When I set MultipleChoice.getDisplayValue(), it returns the name of the value and not its label.

Have a look on the images I attached in this message.

Thanks for your returns

1 ACCEPTED SOLUTION

Joe S1
Kilo Sage

Hi Jeff,

 

Try this and see if it works:

MultipleChoice.getGlideObject().getQuestion().getLabel()

 

Thanks,

 

Joe S 

View solution in original post

2 REPLIES 2

Joe S1
Kilo Sage

Hi Jeff,

 

Try this and see if it works:

MultipleChoice.getGlideObject().getQuestion().getLabel()

 

Thanks,

 

Joe S 

Jeff W NZAO B
Mega Guru

Thanks Joe S