REST API for Order Guide submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 01:40 AM
Hi,
We have an order guide defined in our SNOW instance. Based on the options selected on the first page, 2 catalog items will be associated to the order guide under Rule base.
Please let me know the REST APIs to be used to submit a request under the order guide from a third party tool.
Thanks,
Krishna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 01:55 AM
Hi,
You need to write a Scripted REST API.
and run your Order Guide.
See Fillowing
https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/concept/c_RunningOrderGuidesAutomatically.html
For Cart API.
https://docs.servicenow.com/bundle/london-application-development/page/script/server-scripting/reference/r_ServiceCatalogScriptAPI.html
It will help you 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 01:58 AM
Hello,
There are 2 REST API function specific to Order Guides. They are submit_guide and checkout_guide, You can use these to create new order guide request from third party tool.
Please search on this API reference link and you will get details about its input and output parameters
https://docs.servicenow.com/bundle/london-application-development/page/integrate/inbound-rest/concept/c_ServiceCatalogAPI.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 02:32 AM
Hi,
Thank you. I had already gone through that link before. But it didnt give an idea about how to submit the request.
PUT https://instance.service-now.com/api/sn_sc/servicecatalog/items/{sys_id}/submit_guide will return the catalog items based on the variables we pass for the order guide. After that how to submit the request ?
Can you please let me know how to submit the request after giving the above API ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2018 02:38 AM
I believe you may have to checkout_guide after you use the submit API. This should be creating the items