How can I get the table's label from the 'current' object?

Jay Gamblin
Mega Sage

I can get the table name from current.getTableName()   but I need something like current.getTableLabel() which doesn't exist.   How is the best approach to get this?

1 ACCEPTED SOLUTION
5 REPLIES 5

vitaly_sukharev
Kilo Guru

Hi Jay,



There is getClassDisplayValue() method.


Ah thanks. I could not find this earlier.


For those who are having issues with the link to wiki. Here is the method on the developer site.

https://developer.servicenow.com/dev.do#!/reference/api/washingtondc/server_legacy/c_GlideRecordAPI#...

Ct111
Giga Sage

Hi Jay ,



Try this



getLabelOf(fieldname) ...     Let me know if this works for you or not.






Please Hit Like or Mark as Helpful if it solved your query