Redirect to a "ui page" from record producer in service portal

girishk
Tera Expert

Hi all,

Need to redirect to a "ui page" after submitting the record producer in a "scoped" application HR. tried "portal.redirect ",portal.url_redirect" etc .Nothing works....

Need help please.

 

Thanks,

girish.K

1 ACCEPTED SOLUTION

girishk
Tera Expert

Have completed this by using a client script to pass the instance "URL" via the variable and call it via "top.window.location " function..

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Girish,

try this

producer.portal_redirect = "url";

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Alikutty A
Tera Sage

Hi,

Please read through the documentation on redirecting a record producer. 

Redirect after submitting a record producer

To redirect an end user to a particular page after the record producer is submitted, define the redirect link in the Script field using any of the following:
  • producer.redirect: Enables the redirect behavior within the Platform UI.
  • producer.portal_redirect: Enables the redirect behavior within Service Portal.

For example, the following code redirects users to their homepage after the record producer is submitted:

  • Within the Platform UI:
    producer.redirect="home.do";
  • Within Service Portal:
    producer.portal_redirect = "sp?id=sc_home"

 

https://docs.servicenow.com/bundle/newyork-it-service-management/page/product/service-catalog-manage...

girishk
Tera Expert

how to i get an "id "for a ui page???,or is there a different way i should handle this??.

It would be  ui_page.do?sys_id=SYS_ID_OF_UI_PAGE