how to get display value in business rule for variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2025 07:02 AM
I have a variable "u_currency_code" which is a choice field.
when I checked this value and displayvalue it is giving below result. seems from backend it was updated. I need to get this value in business rule or using dom manipulation. how to get it?
current.variable.u_currentcy_code="AED"
current.variable.u_currentcy_code.getDisplayValue()=null
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2025 07:04 AM
if you want to get the choice value then current.variable.u_currentcy_code
if you want to get the choice label for the value selected then current.variable.u_currentcy_code.getDisplayValue()
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2025 07:25 AM
actually the backend value is same but display value are different
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2025 07:37 AM
I didn't get the meaning of this line ->
actually the backend value is same but display value are different
It could be the way how someone configured and kept the choice value and choice label same in question_choice table
Did you check that in the variable config screenshot in related list?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2025 11:38 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader