
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-17-2019 06:33 AM
I've been trying to get a re-direct on catalog item submit to work in our current London environment. We want the next page after submit to be the RITM; NOT the Request. We are a 1:1 environment here.
I've tried several approaches, including one that had PREVIOUSLY worked for us when the portal was first built back in Jakarta. It will not work with the current iteration of "SC Catalog Item" widget.
Does anyone know what I must configure on the widget to make it redirect to the RITM, not the REQ?
Thanks for reading!
TJ
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2019 11:09 AM
Thank you Allen! I did end up finding this one online too!
It was SOOO helpful.
I ended up using: https://community.servicenow.com/community?id=community_question&sys_id=53a64765db1cdbc01dcaf3231f96...
I edited two widgets for "Ticket Form" page. "Ticket Fields" and "Ticket Conversations" were cloned and edited.
In "Ticket Conversations" widget (server script):
if (data.table == 'sc_request'){
var item = new GlideRecord('sc_req_item');
item.addQuery('request',data.sys_id);
item.query();
if (item.next()) {
gr = item;
data.sys_id = gr.sys_id;
data.table = 'sc_req_item';
}
}
In "Ticket Fields" widget (server script):
var gr = $sp.getRecord();
var sys_id = $sp.getParameter("sys_id");
var table = $sp.getParameter("table");
if (table == 'sc_request') {
var item = new GlideRecord('sc_req_item');
item.addQuery('request',sys_id);
item.query();
if (item.next()) {
gr = item;
}
}
Finally, I created a "Page Route Map" to redirect "SC Request" to "Ticket Form".

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2019 11:22 AM
Hi, ok. Yea that was the exact same link I posted above.
Glad you got it working.
Please mark any other reply as Helpful, if it was. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2019 02:51 AM
Hi TJ,
Thank you for posting the solution. Redirect works fine however, when we try to add comments, system loads conversation from different RITM which it automatically creates. Did you face any such problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2020 08:13 AM
Hi, did you figure this out? I have the problem where the comments are not getting added to the RITM.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-01-2020 02:48 PM
To solve the problem when you a try to add comments, system loads conversation from different RITM which it automatically create.
Just change the "gr.sys_id;" to "gr.getUniqueValue();"
if (data.table == 'sc_request'){
var item = new GlideRecord('sc_req_item');
item.addQuery('request',data.sys_id);
item.query();
if (item.next()) {
gr = item;
//data.sys_id = gr.sys_id;
data.sys_id = gr.getUniqueValue();
data.table = 'sc_req_item';
}
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-05-2020 03:45 AM