REST Table API to trigger a Catalog Item request

pathat
Kilo Expert

Hello.

I'm working on an external form for users to fill out and submit into SN via the REST Table API.

If I create a catalog item in SN, is it possible to use this API to request this catalog item by inserting a new record into the Service Catalog Requested Item [sc_req_item] table, and thereby triggering the corresponding approval workflow? Will this work?

If yes, will need to figure out what required fields to be populated at a minimum in order for this to work.

11 REPLIES 11

Mike Allen
Mega Sage

You can test it through REST API Explorer or soapUI.   That is how I set my expectations on what will and won't happen, usually.   Also, if you have data policies on the table, they will apply to web services.   Other things won't.


I agree Mike. I have been experimenting with an API client, a great way to learn, but not yet with interfacing with the Service Catalog Requested Item table. I wanted to check with the community before I muck up or break my instance. It doesn't look like there is much documented cases on using the REST Table API this way.


vant
Tera Expert

Hi Pat


I believe that anything you submit directly into the sc_req_item table outside of the traditional catalog submission space would not be advised, but it depends on your requirements. I would try to use the ServiceNow available API in order to submit a catalog item properly so it creates the traditional Approval, REQ, RITM, and TASK structures to keep as much of the OOTB functionality in place.



See this wiki article to see if it will help: http://wiki.servicenow.com/index.php?title=Order_a_Service_Catalog_Item_from_a_Script#gsc.tab=0


I agree Van. I didn't feel safe inserting records into Service Catalog Requested Item table, without any guidance or documentation. Unfortunately I do not see a REST API for submit a catalog item.