Get a list of catalog/service names from ServiceNow

neha_joshi
Kilo Contributor

I am using the below REST API URL to get the list of Service names from ServiceNow. But this is returning non-service entries as well. Am I using the wrong URL? Please help.

https://<baseurl>.service-now.com/api/now/table/sc_cat_item?sysparm_fields=name,sys_id

1 ACCEPTED SOLUTION

Hi Neha,



You're close. To add the additional parameters on the URL, add &sysparm_query=sys_class_name!=sc_cat_item_guide&type!=package&sys_class_name!=sc_cat_item_content



I recommend using the REST API Explorer on your instance to help you build the URL and see the returned results. It's a great helper tool.


View solution in original post

10 REPLIES 10

Chuck Tomasi
Tera Patron

Hi Neha,



What are you using to visually identify a service from a non-service?


Sorry, I am very new to ServiceNow and I should I have been more clear. I need to pull the list that shows up under "Maintain Items" i.e the Services that can be requested from ServiceNow. These are the Catalog Items.


The sc_cat_item table IS the list from maintain items. I'm confused what the issue is.


I'm wondering if Neha would like to have in her ServiceNow instance a list of "ServiceNow, Inc." (the company) services. In that case, I would fear it doesn't work like this. If you would like Services from ServiceNow, Inc. (like creating an incident) you would probably use Hi support.


But please give us concrete examples like "On my ServiceNow instance, on my catalog, I would like to request..."



And you said that you had Services and non Services, could you make a small list (with 3 or 4 items) where you would say:


  • item1 : service
  • item2 : non service
  • ...


Thanks