Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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

I looked at the links you shared, but couldn't get many details from them.

 

Below is the screenshot of a "Case" (sn_customerservice_case). A case has fields such as

  1. Asset (reference field)
  2. Product (reference field)
  3. Priority (dropdown field)
  4. Short Description (text field)
  5. ...... and all the other fields

 

Can I get these fields (along with their type) using the API? If so, can you point out which API and parameters to pass?

 

Screenshot 2024-12-30 at 22.42.43.png