Need to redirect my Record Producer to a particular page in Portal.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 04:09 AM
Hi all,
The requirement is to redirect my record producer to a particular page in the portal. I have added the script in my record producer script part - but seems not working. Please find below the script below.
current.user = gs.getUserID();
current.sold_product = producer.service_id;//producer.sold_product;
current.status = 'new';
current.service_details = producer.service_id.name;
//current.service_details = producer.service_id;// WHS-34561
current.type_of_problem = producer.type_of_problem_being_experienced.getDisplayValue();
current.target_diagnostics_system = "ngd";
//Manipulate AccessTechnology value as per WHS-44998.
var accessTechnologyVal = '';
var damageValue = '';
var final_input = '';
//Create the html contents of the information message
var message = current.number + " submitted successfully.";
//Add the information message
gs.addInfoMessage(message);
producer.portal_redirect = "enterprisewholesale?id=pdpl_diagnostics_report&table=x_bttm_bt_diagno_bt_diagnostics&sys_id="+current.sys_id;
Any changes that I should make it at the portal side.
Best Regards,
Sreesh Surendran
CSM & Integrations.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 07:09 AM
Hello @sreeshsurendran
Is it working if you keep only the redirect part of the script and remove all other script?
Keep only below script.
producer.portal_redirect = "enterprisewholesale?id=pdpl_diagnostics_report&table=x_bttm_bt_diagno_bt_diagnostics&sys_id="+current.sys_id;
Thank you,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 07:28 AM
Hi @sreeshsurendran ,
you can use this script in the record producer script
Within the Platform UI:
producer.redirect="home.do";
Within Service Portal:
producer.portal_redirect = "sp?id=sc_home"; // give here the portal page name
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-20-2024 07:50 AM
@Sumanth16 - I have already applied this script. Please check my code.