Is there a way to set the record producer 'redirect to' field to default to blank, rather than the generated task record or catalog homepage?

Anna Gausel
Giga Expert

Currently the redirect to field only has:

  • Generated Task record: Redirects to the task record created using the record producer.
  • Catalog Homepage: Redirects to the service catalog where the order for the record producer is placed.

I am trying to add a producer.portal_redirect script for one of our record producers; however it these two redirect to fields seem to override my record producer script. I am wanting to see if there is a way to set the redirect to field to blank to/or override it to allow the producer.portal_redirect to work.

1 ACCEPTED SOLUTION

Kiel Sanders
ServiceNow Employee
ServiceNow Employee

Hi Anna

 

It sounds like you only want to override this on one specific record producer, right?  If so, you can add a redirect to the last line of the script section on that record producer.  For example, you can add producer.portal_redirect = “?id=hrj_dashboard”; if you want to redirect back to the homepage of the Employee Service Center after submitting the record producer.  You can also swap the hrj_dashboard value for any other page ID within your portal if you're not using the Employee Service Center.

View solution in original post

5 REPLIES 5

Ahmed Drar
Tera Guru
Tera Guru

If i understand you correctly you want to prevent default behaviour of RP. did you tried this current.setAbortAction(true); ?

Raju Koyagura
Tera Guru

Did you try editing this property glide.sc.producer.redirect_url

find_real_file.png

For more info: https://docs.servicenow.com/bundle/kingston-it-service-management/page/product/service-catalog-management/reference/r_ServiceCatalogProperties.html

 

Please try "producer.redirect" in the script of your Record Producer. 

Kiel Sanders
ServiceNow Employee
ServiceNow Employee

Hi Anna

 

It sounds like you only want to override this on one specific record producer, right?  If so, you can add a redirect to the last line of the script section on that record producer.  For example, you can add producer.portal_redirect = “?id=hrj_dashboard”; if you want to redirect back to the homepage of the Employee Service Center after submitting the record producer.  You can also swap the hrj_dashboard value for any other page ID within your portal if you're not using the Employee Service Center.