The CreatorCon Call for Content is officially open! Get started here.

column details of view using table api

kanikag
Tera Contributor

how to use Table API to get info about the columns in the view
for example, column info of table is present in sys_dictionary and table api can help retrieve the info, How to do something similar for views in servicenow

 

4 REPLIES 4

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @kanikag 

 

Not sure, what is your exact use case but have look: https://www.servicenow.com/docs/bundle/yokohama-api-reference/page/integrate/inbound-rest/concept/c_... 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Ankur Bawiskar
Tera Patron
Tera Patron

@kanikag 

I won't expose sys_dictionary data via table API as it contains all the table information.

Instead you can use scripted rest api and handle the logic within script and give proper API response.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

how can we use scripted rest api  to get the column info of the view? 

@kanikag 

but why does external system require to know the columns on table?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader