REST Table API to trigger a Catalog Item request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 02:24 PM
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.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 02:29 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 04:03 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 02:46 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2016 03:58 PM
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.