Redirecting URL in Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 03:17 AM
Hi Community,
I'm trying to write a Business Rule that creates a new Problem record after changing Incident State to On Hold and On Hold Reason = awaiting Problem
How can I redirect the page to the new Problem Record ? I tried gs.setRedirectURL(); and gs.setRedirect(); and the two methods were failed
Below the script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 03:48 AM
Hi @Khaled RAJHI ,
Try below one
action.setRedirectURL(url);
Mark it as helpful and solution proposed if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2024 04:32 AM
I try the three suggestions and all are failed, please note that it's an After Business Rule
action.setRedirectURL(gr);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 12:09 AM
var redirectURL = "/problem.do?sys_id=" + gr.sys_id;
gs.setRedirectURL(redirectURL);
add this to your script and let me know if it works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-08-2024 05:07 AM
lines added to script and nothing has changed, the page is not redirected to the new created problem record