Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Redirect after on submit in service portal

eyal abu hamad
Mega Sage

hello,
I created custom table and RB.
I want when user submit on portal the RB to redirect him to the record not in portal.
is that possible ?

eyalabuhamad_0-1727249401371.pngeyalabuhamad_1-1727249446372.png

 

5 REPLIES 5

@eyal abu hamad 

 

I tried redirecting to the generated record in native view. I am able to with the below script :

var sysID = current.getUniqueValue();
producer.portal_redirect = "incident.do?sys_id="+sysID;

 

Refer below snips for better understanding :

Record Producer -

AmitVerma_0-1727253725872.png

Post submission, it redirects to generated Incident -

AmitVerma_1-1727253774657.png

 


Please mark this response as correct and helpful if it assisted you with your question.