is it possible redirect to url through script include??
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 09:36 PM
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
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 10:52 PM
No ankur
Am performing action on client script .In Client script am calling script include to perform to insert records after records insert i need to redirect to url
this operation has to perform on particular scenario only not always.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2019 11:38 PM
Hi Madan,
So in the UI page client script section; you are calling script include function; performing something and then want to redirect from the client script section itself
from client script you can redirect as below
window.location = url;
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 09:42 AM
Hi Ankur
i need to directly redirect to url in script include it self no need to come back again to client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 09:48 AM
Hi Madan,
Can you try this?
var url = "your url";
gs.setRedirect(url);
OR
var url =YOUR_URL;
this.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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-08-2019 09:49 AM
i tried but no luck it is not working