API to get the list of entities and fields.

sahilkhanna
Tera Expert

I have installed the `com.sn_customerservice` plugin. Is there an API to get the following?

  • List of entities that the user can create/manage? E.g. Incidents, Contacts, Tasks, Accounts, etc.
  • The layout/fields of the selected entity. E.g. fields within the "Incident" form and the field attribute (mandatory, length, type, etc.).
5 REPLIES 5

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @sahilkhanna 

 

You can go to Rest API Explorer and find the API.

 

AGLearnNGrow_0-1735324300544.png

 

*************************************************************************************************************
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]

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

@Dr Atul G- LNG , I could not find the API in the REST API Explorer, so I posted the question on this forum. 🙂

Hi @sahilkhanna 

 

Did you check the 2nd link provided by @Anand Kumar P  , i think that will solve your issue.

*************************************************************************************************************
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]

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

Anand Kumar P
Giga Patron
Giga Patron

Hi @sahilkhanna ,

REST API Explorer- ServiceNow REST API Explorer is a useful tool to test these API calls interactively with any table any method within your instance by your own.

Refer below links

https://www.servicenow.com/docs/bundle/xanadu-api-reference/page/build/applications/concept/api-rest...

https://www.servicenow.com/community/developer-forum/rest-api-to-get-the-form-layout-and-fields/m-p/...

 

 

If my response helped, please mark it as the accepted solution and give a thumbs up👍.
Thanks,
Anand