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.

Set Return URL as URL parameter

Andrii
Kilo Guru

When creating new module - is it possible to set redirect URL as URL parameter?

11 REPLIES 11

Hi,



don't you see that I've asked a bit different question ... I want to set this parameter not through "action" object, but via URL


yeah, as per your below qn :



I'm invoking New Change Request Creation from UI Page using "sys_id=-1" however after submission it gets redirected not to list of Change Request but to always different pages



how do I set ReturnURL and is it possible via URL? I want to be redirected to change list after Change Submission without editing Submit button



So I provided the code where do we used to set the return url.



Better you can provide the code/logic which you have written, so that I get an idea what exactly happens over there!



Thanks,


Priyanka R


I leveraged action.setReturnURL as workaround, but my question was how to achieve the same without using action.setReturnURL, just using window.location ...


I don't see correlation of GlideDialog to this question, do you see?