Where Can I find the APIs to get the Form Data in Service Catalog

srinivas naraya
Kilo Explorer

Hi Everyone,

I have different forms in the Service Catalog. I am searching for the APIs to get the Forms information like below:

1. Where Can I find the API to get the below information

  • Form ID
  • Form Name
  • Form Fields
  • Form Field Types
  • Form Field Length
  • The field is Mandatory or not

2. I am finding the API to integrate them in our Platform. So, Could anyone help me to get those APIs in the ServiceNow

6 REPLIES 6

reginabautista
Kilo Sage

Hi srinivas, have you looked at the Service Catalog API yet?

 

https://docs.servicenow.com/bundle/quebec-application-development/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html

Hitoshi Ozawa
Giga Sage
Giga Sage

Hi Srinivas,

Service Catalog list containing sys_id and name can be retrieved using the following api. This will return a json with all the service catalog forms.

https://<instance name>.service-now.com/api/now/table/sc_cat_item

Field information on the form can be retrieved using the following api.

https://<instance name>.service-now.com/api/now/table/item_option_new?sysparm_query=cat_item%3D<sys_id of service catalog form>

or by the following api

https://<instance name>.service-now.com/api/sn_sc/servicecatalog/items/<sys_id of service catalog form>/variables 

Service Catalog forms do not have a field length as can be seen from the following screenshot.

find_real_file.png

Check the following Now Support article concerning max length.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0685779

Hi Hitoshi Ozawa,

 

How Can I post the data to a form through an API? I couldn't find an API for that. Could you please help me with that

The original question is on getting information about the form. Posting data is a completely different question. As such, please create a new question on how to post ServiceCatalog record.

Questions and answers are also used by others searching with a similar problem. Deviating from the original question will make is more difficult to search cases.

It is possible to post ServiceCatalog record using an API. I'll answer it in the new question.