Submitting Order Guide through Scripted REST API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 12:59 AM
Hello Mates!
I want to submit an order guide through the Scripted REST API. I have 10 Catalog Items in the Order Guide, whereas 6 to 8 catalog items are triggered based on the Rule base. Here, my question is I wanted to submit this order guide using Scripted REST API, which means API must trigger catalog items also (multiple RITMs under one REQ and Order Guide field on RITM form must be filled with my order guide name before it got created, because we have flow dependency on that field).
Can anyone please suggest to me the best approach to trigger the order guide with API?
Thank you very much
Thank you
G Ramana Murthy
ServiceNow Developer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 02:15 AM
Hi,
Please check below links:
https://www.servicenow.com/community/developer-forum/submit-order-guide-via-script/m-p/1383780
or you can use CartJS Api to submit multiple items.
https://developer.servicenow.com/dev.do#!/reference/api/utah/server/sn_sc-namespace/c_CartJSScoped
you have to use if-else login in script to determine which item should be included/excluded and set variables for each item by preparing JSON and add items to Cart.
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:30 AM
Hello @Anil Lande ,
Thank you for your response, I tried these methods before, But I didn't get the output as expected. If u have any demo code can you please send me if possible
Thank you very much
Thank you
G Ramana Murthy
ServiceNow Developer

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2023 05:46 AM
Can you please share what you have done and what is the scenario you are trying to achieve?
Thanks
Anil Lande