
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-11-2024 02:44 PM - edited ‎11-11-2024 02:45 PM
As the title says what I want to do if possible, is have an initial request that is raised from a catalog item, have some work done in that, but then have a secondary catalog item that can be raised under certain circumstances that is raised and added as a new ritm under the original request ticket.
They would both be raised whilst the first request was still open however.
Is that possible? If so how would I go about it?
As I stated though, they would not be created at the same time, so an order guild or bundle wouldn't work.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2024 09:26 PM
This has been achieved using a flow update record and delete record method.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2024 08:01 PM - edited ‎11-13-2024 08:10 PM
You can do some POC first.
Create a simple catalog item with some field values.
and create a script code for submitting this request.
Example : A simple catalog itemwith 3 variable ram,os and storage.
// Generate a unique ID for the cart
var cartId = GlideGuid.generate(null);
// Create a new cart instance
var cart = new Cart(cartId);
// Add an item to the cart (replace with your catalog item sys_id)
var itemId = cart.addItem('060f3afa3731300054b6a3549dbe5d3e');
// Set variables for the catalog item
cart.setVariable(itemId, 'ram', '16');
cart.setVariable(itemId, 'os', 'win10');
cart.setVariable(itemId, 'storage', '1tb');
// Place the order
var request = cart.placeOrder();
// Log the request number
gs.info("Service request created: " + request.number);
first, create this simple one anc use the above code in backgroup script or fix script to submit request. after poc compplete use the same code in your workflow.
I created the same via Fix Script and RITM/REQ created.
-Thanks,
AshishKM
Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2024 08:39 PM - edited ‎11-13-2024 08:48 PM
I don't see how this can be used multiple times? This is something I'll need to do every time the two catalog items are submitted, but they could be days apart.
I thought the best way would be using a flow in the end, however can't get that to work either, I've posted the question here:

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-13-2024 09:26 PM
This has been achieved using a flow update record and delete record method.