We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Get meta for table

Adithya Khurana
Tera Contributor

I am having a requirement to fetch the API Key names for the tables like Incident, User, and etc.

For this, i have handled one API call for the table - api/now/table/incident with offset 1 to get 1 ticket. and fetched the keys from the response.

Is there any alternate solution available like any dedicated API Call to achieve. 

I also tried sys_dictionary table api but it is not resolving my requirement as i need API/NOW/TABLE/ meta data. 

1 REPLY 1

Hemanth M
Tera Sage

Hi @Adithya Khurana ,

 

Why don't use scripted rest api and pass table names in the body or path/query parameters and read tables, glide get keys??

 

refer: https://docs.servicenow.com/bundle/xanadu-api-reference/page/integrate/custom-web-services/reference... 

 

https://www.youtube.com/watch?v=_GeQXYBpAEU 

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025,2026