Simple record.producer redirect?

NaturedOne
Giga Contributor

Greetings,

 

I'm wondering how I would go about using

producer.redirect

inside my record producer to redirect to the newly created record? Currently it redirects by default to the portal, but I'd like it to redirect to the actual Incident (INC00001) that it creates when submitted.

I've tried this and it doesn't redirect to the record being created by the producer, it merely redirects to the Incidents list.

producer.redirect = "https://mydomain.service-now.com/nav_to.do?uri=%2Fincident.do%3Fsys_id%3D";


Any thoughts would be much appreciated.

1 ACCEPTED SOLUTION

siva_
Giga Guru

If your record producer is producing a record in particular table and if you want to redirect to the record that has been created after submission in that table you need not add any script in the script field 

You can just configure your record producer form layout and add this field shown below

find_real_file.png

If you want to get redirected to a different URL then you have to use producer.redirect and all 

 

Hope this helps 

 

Thanks,

Siva

 

MARK THIS RESPONSE AS CORRECT IF THAT REALLY HELPS 🙂

View solution in original post

4 REPLIES 4

dvp
Mega Sage
Mega Sage

Can you try

producer.redirect = 'incident.do?sys_id=' + current.sys_id;

 

NaturedOne
Giga Contributor

I'll give it a try and report back. Thanks for the speedy response! Much appreciated.

ryan_pope
Mega Guru

Depending on what version you're on (or planning on being on soon), I would look at this, as it looks like this might change slightly: https://docs.servicenow.com/bundle/london-it-service-management/page/product/service-catalog-manage...

 

siva_
Giga Guru

If your record producer is producing a record in particular table and if you want to redirect to the record that has been created after submission in that table you need not add any script in the script field 

You can just configure your record producer form layout and add this field shown below

find_real_file.png

If you want to get redirected to a different URL then you have to use producer.redirect and all 

 

Hope this helps 

 

Thanks,

Siva

 

MARK THIS RESPONSE AS CORRECT IF THAT REALLY HELPS 🙂