I am trying to use the REST API to add a service request.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2015 08:15 AM
Can you tell me what tables I need to use. I am assuming i need to add a record to the sc_request table then a record to the sc_req_item table?
I can add the request to the sc_request successfully but when I try to add the item to create the RIT record in the sc_req_item table I get a 201 but no retuned data.
When I go back to look at the request ticked there is no RIT attached. Can you tell me what I am doing wrong?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2015 08:26 AM
Ray,
Service Request has to be submitted with supported variable values as defined in relevant catalog item. It's not the case of an INC/PBM/CHG where records can be directly created in the respective tables. You may have to submit the service request via script. Please see this Service Catalog Script API - ServiceNow Wiki
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-29-2015 08:53 AM
Thanks for the quick reply
Sent by Outlook for Android

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2015 07:28 PM
ServiceNow does not provide an easy way to do this as the Cart API is only exposed within the servicenow system.
However, recently my peers and I did work on something to allow this. I just posted it to share, it's a single processor and script include to expose those parts feel free to try it out. Here's a link to the share - ServiceCatalog Custom Rest Processor
Below are screenshots using Chrome's DHC Addon
Calling https://instance.service-now.com/service.do with GET
Headers required: Authorization: Basic (your auth token goes here)
Calling https://instance.service-now.com/service.do?sys_id=01205b180a0a0b3000b6efd641d24b75 with GET
This will get all the details of the item your want to request.
Headers required: Authorization: Basic (your auth token goes here)
Calling https://instance.service-now.com/service.do with POST
This will request the items you tell it in the array you pass. There is no checking if the values you pass would pass client side.
Headers required: Authorization: Basic (your auth token goes here)
Try it out. Maybe it'll meet your needs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2015 07:39 AM
Thanks so much for the suggestion. I will take a look.