Is it possible to create catalog item via REST API?

Anant Garg1
Kilo Contributor

I am unable to see any end-point for catalog item creation in API doc. Is it possible to create a catalog item via API? If not, then how can we add items into the cart and submit an order? as for an order we first need to create item 

17 REPLIES 17

Yes, you must have an item available so user can select it and submit it. just like an AMAZON.com  cart. 

if you did not create item then , you can create it in service-now first and then you can use it on your  integration .  

if you have already created an ITEM ( Catalog Form ) then you can use that sysid into that integration to submit it. 

Doc link for further details. 

 

https://docs.servicenow.com/bundle/newyork-it-service-management/page/product/service-catalog-manage...

 

If my answer helped you, kindly mark it as correct and helpful.

 

Just want to add here again,

 

if you create an ITEM using api then how would you apply ui policy , client script , workflow , variables ? i don't think it's good way to that. event it will be more complicated.

 

you just login into the instance and crate catalog form and attach workflow , ui policy client script variables , based on your need and then you can use inside your integration to let the user to submit it from your platform.

 

If my answer helped you, kindly mark it as correct and helpful.

 

 

What if in the case I want to create a list of products from some other source? Let say I am a seller at AMAZON.com and I want all my products from there to be on ServiceNow, I might have a CSV of them or I can fetch all of them programmatically and now want to add it via API

TBH. It will take lot of efforts , because if you will have list of products available in CSV then ofcource you will have bunch of different variables for each products so how will you drive those product if somehow you manage to create it using API , Another effort would be attaching workflow for each products.

 

instead of doing all these, create one generic catalog form in service now and submit the request with different different product name. 

Hi Harshvardhan

Going with my understanding and this guide, I am able to understand that workflow is required for the fulfillment of an item so it should not halt my execution to add catalog item. And suppose I have a list of simple products with the price (i.e., no variable) then can I add a catalog item with API? I am still unable to find any end-point to add a catalog item