- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-04-2015 01:30 AM
Is there any SOAP or REST api which can get the list of tables Both standard and custom tables present in serviceNow?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-15-2015 11:09 AM
sys_db_object_list
From the left navigation pane, select System Definition > Tables and Columns. Click tables
Name has all the tables/views.
Tables & views has th elist and a schema. use .list to view it remotely.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 06:27 AM
Hi Rohit,
You can query sys_db_object via
REST api or
SOAP api
SOAP Direct Web Service API - ServiceNow Wiki
As noted in Re: Staging table list
You could define sysparm_query=nameNOT LIKE00
or something similar, to exclude rotated tables as the rotated tables have names ending in 00[0-9][0-9]
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-07-2015 07:27 AM
I don't believe there is an API to get the list of all the tables and columns. Your best bet is to build a processor that takes in a parameter and gives you the list of Fields / Tables. Another option is to use a Webservice on sys_dictionary table which I wouldn't recommend.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2015 11:21 AM
Hi Rohit,
How are you getting on? Did you find a solution that suited you? Anything you would like to share with the Community?
Consider marking the question as answered, marking replies as helpful.
Best Regards
Tony
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-09-2015 11:32 AM
If you doing a custom application in Fuji, then I see there is an API to get the fields.IT's called GlideTableHierarchy, and it is present on developer website.