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.

gs.setRedirect(url) in BR

ggg
Giga Guru

In my AFTER BR I have gs.setRedirect(url).

It is not redirecting.

I have checked that the  url is correct and when pasted into a browser gets the record.

I am in Helsinki

has anyone redirected to a record from a BR?

1 ACCEPTED SOLUTION

Brian Lancaster
Kilo Patron

You need to do action.setRedirectURL(url); instead of gs.

View solution in original post

4 REPLIES 4

Brian Lancaster
Kilo Patron

You need to do action.setRedirectURL(url); instead of gs.

I am not in an action. I am in a BR.

I looked up existing business rule that are OOB and they have action.  I don't think that is specific to being to a UI Action.

you are correct. my first research indicated that i needed to use gs but action works.