Create a Service Catalog Request via REST API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2017 10:01 AM
Hello, is it possible to create a Service Catalog Request programmatically using the REST API?
We have an existing Requested Item and we want to request it via REST API script externally.
Thanks!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-16-2017 11:50 AM
These guys are correct. I use the Buy Item Service Catalog API:
/items/{sys_id}/order_now
Where sys_id is the sc_cat_item sys_id.
This will order you one item at a time. Be careful of multiple requests coming in for the same item (albeit with different variables) at the same time - it gets its knickers in a twist and Requests or data can go missing.
I have written specific versions of this API enabling end users to submit requests using friendly variable data, rather than them having to look up sys_ids of reference fields first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2019 01:15 PM
Hi,
Can you please share specific version of API which allow external system to send friendly variable data rather than sys_ids. We are in same situation and passing sys_id in reference variables is killing us.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2019 01:42 PM
try to use an attribute in your variable header inorder for the system to accept display value
sysparm_display_value=true
Please mark my response as correct and helpful if it helped solved your question.
-Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-15-2019 10:36 PM
Hi, tried but still no luck.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-02-2020 09:13 PM
Hi,
I tried submitting the Service Catalog API request for order_now, but I am getting the 'The remote server returned an error: (500) Internal Server Error.'. Could you please help me out solving the Issue. I tried submitting the request using C#.
Thanks & Regards,
Luman.