How to get field label from field name?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2020 10:12 PM
For any field in a GlideRecord, what is the method used to grab the label name?
Thanks
Labels:
11 REPLIES 11
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2020 10:40 PM
I did. That example is useful in a Service Catalog with Request items.
What I am doing does not involve service catalog. Rather, it handles an integration from an outside source.
Community Alums
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2021 09:14 AM
grTarget.getElement(fieldName).getLabel()
Not sure if you were able to sort it but this did the trick for me and it also seems to support dotwalking.