- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 10:15 AM
Hi,
I want to get the Label of the table returned when doing a GlideQuery on the cmdb_ci table
Example
for the the computer table
cmdb_ci.sys_class_name returns 'cmdb_ci_computer'. What should be the expression to be used if I want the Label i.e. 'Computer' returned instead (and not the table name 'cmdb_ci_computer')
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 10:33 AM
Hi,
Can you show your code? You can get the display name using the getDisplayValue(); option at the end. Try this and share your code if this doesn't work.
var Label = <Variable_name>.getDisplayValue();
Let me know if you have questions or mark this response "Answered / HelpFul".
~Raghu.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2019 10:33 AM
Hi,
Can you show your code? You can get the display name using the getDisplayValue(); option at the end. Try this and share your code if this doesn't work.
var Label = <Variable_name>.getDisplayValue();
Let me know if you have questions or mark this response "Answered / HelpFul".
~Raghu.