gs.setRedirect() not working in after BR

Souvik Chakrabo
Tera Contributor

I was trying to redirect a user to  some other form after update in incident form.

I wrote an after BR in the incident table and added gs.setRedirect('/change_request.do?sys_id='+some_sys_id);

It updated the record but didn't redirect the user.

Also tried to write the same code in Script Include and call it in the BR but no luck.

Could anyone help me with this? 

Thanks in Advance!

2 REPLIES 2

SanjivMeher
Kilo Patron
Kilo Patron

I think you need to use action.setRedirectURL(('/change_request.do?sys_id='+some_sys_id);


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

The SN Nerd
Giga Sage
Giga Sage

There could be another Business Rule that runs after that is redirecting the user to a different page.

Check other business rules with a higher order for this.


ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022