Get Display value

XYD23
Tera Contributor

I have written a business rules script to get the value to other field, actually the value I'm getting is perfect but I need to see the display value

For example:

XYD23_0-1708671664053.png

in this value I'm getting is ff66c1254fb81200025ba3618110c76e
but I want to see as Michelle Semmler 

 

2 ACCEPTED SOLUTIONS

Voona Rohila
Kilo Patron
Kilo Patron

Hi @XYD23 

use current.field_name.getDisplayValue() in your code to get the display value.

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

AndersBGS
Tera Patron
Tera Patron

Hi @XYD23 ,

 

You just need to add the "getDisplayValue()" to your script.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/

View solution in original post

2 REPLIES 2

Voona Rohila
Kilo Patron
Kilo Patron

Hi @XYD23 

use current.field_name.getDisplayValue() in your code to get the display value.

 

 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

AndersBGS
Tera Patron
Tera Patron

Hi @XYD23 ,

 

You just need to add the "getDisplayValue()" to your script.

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

best regards

Anders 

If my answer has helped with your question, please mark my answer as the accepted solution and give a thumbs up.

Best regards
Anders

Rising star 2024
MVP 2025
linkedIn: https://www.linkedin.com/in/andersskovbjerg/