UI Builder - Catalog Item Component - How to get the resultant RITM number/sys_id after ordering

Ben Sumner2
Tera Expert

Hi,

Using the catalog item component, I've successfully set it up with a sys_id of catalog item and can open the page and complete the order.

Is there a way of know what RITM number/sys_id is generated for the order? I could look up the table for the latest entry in both tables for the item that was ordered but that seems rather clunky?

On a side note: when you order an item the order button is greyed out and the tab remains open. How do you close the tab? Guessing you need to add an event handler to the request generated? but I'm not sure if it's a page script that I need to create or an oob event hander that I'm not seeing? 

All help is appreciated.

Cheers

Ben

3 REPLIES 3

Roy Wallimann
Tera Contributor

Hi Ben

When you submit a request with the "Catalog Item" component, you get the table & sys_id of the generated record in the payload.

You can access the payload in Page scripts with "event.payload" (e.g. event.payload.sysId).

 

I would suggest you to configure a "Link to destination" event handler to the component:

find_real_file.png

 

Configuration for destination "App route":

find_real_file.png

The "Sub-navigation route (advanced)" property is for opening the record in the same tab. If you leave this empty, the record will open in a new tab.

 

Regards,

Roy

How would you do if you would like to replace the catalog item with a success message and show the request number instead of being redirected? 

noraarhzane2
Tera Expert

Hi!

Did you solve this?