How to get redirected to created RITM when submitting a catalog item on the Service Portal

Johannes Mweli
Giga Guru

Hi ServiceNow Community Developers,

Right now on the Service Portal when I create a request from the catalog item form the system shows me the REQ details instead of the RITM details. For instance after filling out the form on the SP and click submit the next page I get redirected into is the one with the REQ details as shown in the REQ details attached screenshot. The behavior I would like to see after clicking submit to create a request in the Service Portal is to be redirected to the RITM details as shown in the RITM details screenshot. Please advise as to how can I accomplish this functionality.

Thanks,

Johannes 

5 REPLIES 5

Prasad Pagar
Mega Sage

Hi @Johannes Mweli 

Any reason you want to do this?

There are implications if you implement this. For e.g If you are submitting request adding multiple items in cart and then checkout then which RITM it should show??

Same with Order guide with RITM it should show?

This is happening from SC Catalog Item page

find_real_file.png

If you see for sc_request is specifically have sc_request page but for all other tickets which always creates only one record get redirects to ticket page which is nothing but your RITM page

ServiceNow Intentionally added it to eliminate issues which I have mentioned above

Hope this helps

Thank you
Prasad

Ankur Bawiskar
Tera Patron
Tera Patron

@Johannes Mweli 

These link have the solution; you can check those

Redirect Submit to RITM instead request on Service Portal

How do you do a redirect to a RITM on submitting a request from the Service Portal?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Derek Broussard
Tera Contributor

I had come across this requirement recently and utilizing other posted solutions I ran into the issue where when the client controller did not wait for the server script to respond before attempting to redirect, i had to add the .then syntax to wait until the the data was received.
Screenshot 2024-08-07 at 3.53.52 AM.pngScreenshot 2024-08-07 at 3.54.27 AM.png

 

 

 

 

 

  

Hello Derek, 

I'm looking into the same solution, can you please provide us a snip on the line 

"input.myrequest); // from line 514 in the client script"  514 on your script, I've implemented your solution however it's not working, I believe there are some missing pieces. Is "myrequest" something that get's populated in the server script ? 
Thank you