Unable to redirect a record producer to a specific page after submission

Ap_1
Tera Contributor

I have one record producer to create demands, which is currently redirecting to sc_request page.

 

I have to re-direct it to a new page I have created, so I added below line on record producer script

 

producer.portal_redirect = '?id=ticket_demand&table=dmn_demand&sys_id='+currect.sys_id;
 
still it is going to sc_request page. Can you please help me how to redirect it to the ticket_demand page.
7 REPLIES 7

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ap_1 

 

OOTB, record producer pick the redirection from here :

AGLearnNGrow_0-1711896493611.png

 

 

We need to make changes in code, so that this code (image one) should be overwritten but our code. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

@Dr Atul G- LNG Redirect to is already set to "Generate task record".

Sumanth16
Kilo Patron

Hi @Ap_1 .

 

Please refer to below thread:

https://www.servicenow.com/community/developer-forum/problem-with-record-producer-redirect-after-for...

 

If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!

 

Thanks & Regards,

Sumanth Meda

Ap_1
Tera Contributor

@Sumanth16 Its not working.

 

Actually after submitting system is first opening the newly generated record and then redirecting to "sp?id=sc_request&table=sc_request&sys_id=undefined", not sure how it is by default going to sc_request.