does gs.setRedirect() work in after BR in workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 03:23 AM - edited 04-07-2025 03:24 AM
Hi,
In the list view in workspace I need to write an after update BR on a custom table to redirect it to a particular url. But when i try write the following code there is no redirection happening. I tried with other url also that is also not working
(function executeRule(current, previous /*null when async*/) {
var url ='/x/iem/tqa-workspace/home/params/sys-id/740dd0401b5ca650e7e5c995604bcb04/edit/false';
gs.setRedirect(url);
})(current, previous);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:35 AM
HI @MaharshiC ,
Please check this thread :https://www.servicenow.com/community/developer-forum/action-setredirecturl-not-working-in-customer-s...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 12:45 PM
Hi @Community Alums ,
I dont think the oncell edit client script works in workspace list view. So is there any other way i can achieve this redirection as I am not able to call the client script in workspace list view

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 06:17 PM
Correct @MaharshiC , oncell edit client script doesn't works in workspace list view.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 10:32 PM
Hi @Community Alums ,
Is there any alternative to do this url navigation in workspace list?
Regards,
Maharshi