How to get all the table fields (including inherited table fields) through REST API
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-14-2023 11:57 PM
Team,
We need to get all the fields for table for our feature. All the fields are coming except parent fields.
Can anybody help me to get all the table fields ?
We are using this query to get all the fields :
https://<our_instance>/api/now/table/sys_dictionary?sysparm_query=name=incident_task&sysparm_limit=10&sysparm_limit=1000
Thanks,
Hari
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2023 09:55 AM
Hi @Haribabup ,
You can modify your query to include the sysparm_exclude_reference_link parameter and set it to true. This will exclude the reference links and provide the complete field information, including inherited fields.
Here's an example query to retrieve all the fields for the incident_task table:
https://<your_instance>/api/now/table/sys_dictionary?sysparm_query=name=incident_task&sysparm_limit=1000&sysparm_exclude_reference_link=true
Thanks,
Ratnakar
