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.

Why ist getValue() not working in scope apps?

Meloper
Kilo Sage

Do you have e technically knowledge about this?

 

What are the alternatives?

Hoe do i get the value of choice Variable or how to i get the display value of a choice variable or how do i get the string value?

 

I know we can use to String() but does it show the value oder displayvalue of a choice and what shows the opposite? 

12 REPLIES 12

Pavankumar_1
Mega Patron

Hi @Meloper ,

can you share the script which you are working?

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

There is no script. 

I want to know, why we can't use getValue() in a scope and what should we use instead 

Hi @Meloper ,

we can use getValue on scope as well.

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

please try to get a value of a Choice VAr with get Value in a Scope App