- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 01:58 AM
Hi,
I need to redirect the URL to a different page through business rule.
I am using gs.setRedirect(url) by setting up the url.
Once the condition are true, it showing the form using the above parameter but it's redirecting to new url but opening the form in the bottom same page.
Please advise.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-30-2020 11:35 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 02:17 AM
Hi Amit
You Might find this Thread Helpful
Please Mark Correct and Helpful
Thanks and Regards
Gaurav Shirsat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 02:37 AM
Hi Amit,
Please check with your function it should be,
action.setRedirectURL("URL");
Please mark if it helps!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 07:35 AM
Hi Priya,
I tried with action.setRedirectURL("URL"), but nothing happened with this parameter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2020 07:40 AM
Hi Amit,
you cannot use action in business rule; only allowed is gs object for redirection
you cannot open the page in new tab using gs.setRedirect(url)
To which page you need to take
sample below
gs.setRedirect('/incident.do?sys_id=-1'); // this will take to new incident record
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