Fetch Table Schema using REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2016 04:11 AM
Hi,
How can i fetch the schema of the particular table in serviceNow.
Can any one help.
Thanks.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2016 04:53 AM
You should be able to fetch the primary information from the sys_dictionary table by passing the table name parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-02-2016 05:58 AM
Hi Subhajit,
I have tried this command, i am getting big amount of o/p which is too large.
curl -H "Authorization:Bearer BearerToken" "https://dev.service-now.com/api/now/v1/table/sys_dictionary?sysparm_query=GOTOname%3Dsys_user" -H "Accept:application/json"
Whether it is correct or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2016 09:27 AM
Try with this URL: https://myinstance.service-now.com/incident.do?SCHEMA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2020 08:15 AM
Looks like even with the http header -H "Accept:application/json" it is returning Xml.
Is there a way to force it to return Json?