Business Rule to submit catalog item scoped application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 01:51 PM
Hello,
I am using the below script in Business rule to submit catalog item when a ticket in scoped application is updated.
script:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 02:09 PM
Looks like from the Docs you can just drop these lines
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:11 PM - edited 04-22-2024 07:11 PM
Hi Drew,
Yes, I have commented out those 4 lines of code and when I run it in the background script I get the below results. but I don't see a RITM or REQ created.
Script:
Output:
But if I use cart.submitOrder() instead of cart.orderNow(), 13 RITMs are being generated for 1 REQ. which is weird.
Thanks,
Ben.
Ben.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-23-2024 08:26 AM
So your output there is the system creating the cart and adding the item to it, but nothing was ordered.
What you have to do and the order depends on if you have two step checkout setup or not if memory serves.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:44 PM
I think it’s working now! Cart.ordernow(request); is only giving sys id of cart id as per the docs. So, if I use both cart.ordernow(request); and cart.submitOrder(request); it is working.