- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 03:27 PM
How do I query the rest API for Column Label Names? I can query one incident to get all the columns like this.
https://myDev.service-now.com/api/now/v1/table/incident?sysparm_limit=1
But I need to get all the labels for each of the columns
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2021 09:09 PM
You can use this and it will get all the fields from incident and task.
Incident extends task so it also inherits all the fields from task.
https://{INSTANCENAME}.service-now.com/api/now/table/sys_dictionary?sysparm_query=name%3Dincident%5EORname%3Dtask&sysparm_fields=column_label
https://youtube.com/watch?v=zYi8KhP9SUk

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 04:09 PM
HI,
I believe that is not possible with Servicenow APIs. However, you might create your scripted Rest API to achieve this.
I would also, like to know the use case for getting the label instead of the column name. Can you explain that?
Regards,
Muhammad
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 06:30 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 10:54 PM
HI
You can do so when you query the Dictionary table (via REST API) and find table field names and labels on that table [sys_dictionary].
Let me know if that answers your question and mark my answer as correct and helpful.
BR
Dirk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-09-2021 08:20 PM
Hi,
try below
Online application to test the API
https://reqbin.com/
endpoint URL:https://demo1.service-now.com/api/now/table/sys_dictionary?sysparm_query=name%3Dincident&sysparm_fields=column_label
In Reqbin give the endpoint and credentials of a user from your instance , you can see the response on the right side of the screenshot.
Please do mark my answer as Correct/Helpful if it helped you to resolve the issue.
Regards,
Harika