- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2022 11:18 PM
Hello All,
I have requirement that,
We have an existing catalog item like procurement item , it contains some variables now due to migration now this catalog item is no more using so ,
Item owners want that endusers clicked on the existing catalog item then it will redirect to new catalog item that is in new company portal.
So please suggest what I need to do on this requirement.
I have suggested , on description part or I create one label and put some these new link on form. I have some doughts on this if we inactivate the all existing variables, then the previous records will display those variables.
Please give me some guidance on this.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2022 11:31 PM
Hi you can have a onload client script on old catalog item. If they open old item on portal it will redirect them to new item
function onLoad() {
var sys_ID = '65ea93ea074c5510f1cbf48f7c1ed034'; // old catalog item sysid
if (sys_ID == '65ea93ea074c5510f1cbf48f7c1ed034')
{
location.href =" /sp?id=sc_cat_item&sys_id=08bd647507f50110f1cbf48f7c1ed01d"; //replace portal name, page id and item sysid
}
}
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-17-2022 11:31 PM
Hi you can have a onload client script on old catalog item. If they open old item on portal it will redirect them to new item
function onLoad() {
var sys_ID = '65ea93ea074c5510f1cbf48f7c1ed034'; // old catalog item sysid
if (sys_ID == '65ea93ea074c5510f1cbf48f7c1ed034')
{
location.href =" /sp?id=sc_cat_item&sys_id=08bd647507f50110f1cbf48f7c1ed01d"; //replace portal name, page id and item sysid
}
}
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 10:24 PM
Thanks Harish KM, your script is working fine.