Employee Center:After submitting the catalog item, redirect to the RITM page instead of the REQ page

Elton2
Tera Contributor

Hi everyone, how are you?

 

When a user submits a Catalog Item, the next page is the REQ (img_1), but I would like the user to be redirected to the RITM page (img_2) after submitting a Catalog Item.

 

1) I cloned the "Ticket Conversations" widget
2) I created a "ticket_conversation_clone" page
3) I added this script to the server: (img_3)

if (data.table == 'sc_request') {
var item = new GlideRecord('sc_req_item');
item.addQuery('request', data.sys_id);
item.query();
if (item.next()) {
data.sys_id = item.sys_id;
data.table = 'sc_req_item';
}
}

 

4) I created a "Page Route Maps" (img_4)

5) However, when I submit a catalog item, the REQ still appears (img_5)

 

Note: I read this suggestion: https://www.servicenow.com/community/itsm-articles/redirect-to-requested-item-ritm/ta-p/2300997/show...

 

I downloaded the Update Set > uploaded it > created the property (x_295070_req2ritm.redirect_override), but
it didn't work!

 

I wonder if anyone has any suggestions regarding Employee Center Portal?

Thanks so much 😉

1 REPLY 1