Create Service Catalog Item through REST

David32
Kilo Explorer

Hey Everyone,

I am new to ServiceNow and playing around in the Persona Developer Instance of the Demo environment that they provide. I am looking into the REST options provided in the API and I do not see an option for creating an Item under the Service Catalog option.

I see that you can GET items using /api/sn_sc/servicecatalog/items  or add items to cart, checkout items and submit the order. Is there an API call for creating a Service Catalog Item? Do I have to POST to /now/table/{tableName} ? if so, which table?

I don't know if helps, but I am using POSTMAN along with the ServiceNow REST API for all my testing/playing around.

Thanks

6 REPLIES 6

Ok. I think you should use the table api for the table sc_cat_item to insert a record in catalog item table. But this will only create record in catalog item, but won't create any variables.

The other option is to use Scripted REST API to get the data from 3rd party and create the catalog as well as create any required variable. I would suggest you to explore the scripted rest api option.


Please mark this response as correct or helpful if it assisted you with your question.

David32
Kilo Explorer

Thanks Sanjiv, I will certain take a look into the Scripted REST API and play around with that.

 

Many thanks.