How to get redirected to created RITM when submitting a catalog item on the Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2021 07:28 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-13-2025 02:08 PM
Hi @Derek Broussard how are you?!
I would like to know which widget you cloned to make these modifications in the Client and Server Script? Could you please tell me!
Thanks for your support.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2025 08:21 PM - edited ‎09-18-2025 08:25 PM
Hello @Elton2 the widget on the portal that displays a catalog item is called "HRM Catalog Item" which then calls another portal widget "SC Catalog Item"
Within the client controller, on line 1073 of my screenshot is where c.data.myrequest is assigned the value of the requests sys_id
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2024 07:01 PM
in the server script line 9 the 'input.myrequest' is the sys_id of the REQ that is passed from the client controller on line 1073. I assign it to 'c.data.myrequest' in the client controller to pass to the server script. 'a.sys_id' is the variable the OOB script uses to redirect to the REQ summary. Thus conditionally if there is only one RITM for the REQ it will redirect to the RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-20-2025 12:02 PM - edited ‎09-20-2025 12:07 PM
Hi @Derek Broussard , how are you?
Sorry, but I'm still a little confused. Let me try to explain what I did:
1) I cloned the "SC Catalog Item" widget and added the codes you provided (img1)
2) I cloned the "HRM Catalog Item" widget and replaced it with the cloned widget's ID (img2).
3) I created a page and placed the "HRM Catalog Item" widget, but a message appears (img3).
4) And I created a Page Route Map to redirect to the page I created (img4)
Could you explain to me what's wrong? Please!
Thanks for your support!
