- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 06:13 AM
Hello Team,
I have below script which gives me reference value, and I am interested to get the Display name instead.
Can you please help me to achieve that?
Output I get as below:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 06:17 AM
GlideRecord | ServiceNow Developers
It sounds like getDisplayValue() is what you're looking for.
rec.variables.selectedPC.getDisplayValue()

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 06:17 AM
GlideRecord | ServiceNow Developers
It sounds like getDisplayValue() is what you're looking for.
rec.variables.selectedPC.getDisplayValue()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2024 06:57 AM
Thanks Nick. Yes this is exactly what I was looking for.
Thanks.