Dynamic page creation

Rosy14
Tera Guru

Hi, I have created a page . after submitting a record producer it is redirecting to that page. I want to attach the sys_id of the submitted record in the url. how to do?

 

Record producer script:

 
producer.portal_redirect = "?id=event_reg_success";
 
Rosy14_1-1723625738473.png
 
Rosy14_2-1723625762450.png

 


 

1 REPLY 1

Bhavya11
Kilo Patron

hi @Rosy14 ,

 

You can try something like this:

in producer script you need to pass the id

producer.portal_redirect = "/sp?id=yourpagename&table="+current.sys_class_name+"&sys_id="+current.getUniqueValue();

 

or you can try only with id

producer.portal_redirect = "/sp?id=yourpagename"&sys_id="+current.getUniqueValue();

 

Please mark helpful & correct answer if it's really worthy for you.

 

 

Thanks,

BK