The CreatorCon Call for Content is officially open! Get started here.

is it possible redirect to url through script include??

Madankumar N1
Tera Contributor

Hi Team
I have one requirement
I have one UI Page for notify user it has to run continue here or it has to process background.

how i can perform actions in background process after process completion it has to redirect to one url which some records.

Could any body can help on this.

 

 

 

Thanks

Madankumar

14 REPLIES 14

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Madan,

So you have 1 UI page; in the processing script you want to do some server side code and then redirect?

sample script here:

var url = 'www.google.com';
response.sendRedirect(url);

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Thanks Ankur for quick reply

after i click on continue on background process button it has to close and it has perform actions in server side then it has to redirect.

var url = 'www.google.com';
response.sendRedirect(url);

above code will work in script include?

Hi Madan,

From UI page processing script you want to redirect right?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader