- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 01:17 AM
Hi,
action.setRedirectURL() not working in the customer service workspace
function onClick(g_form) {
g_form.checkMandatory = false;
}
g_form.setValue('state', '7');
g_form.save();
I know action.setRedirectURL will not work in the workspace, which one we need to use, I have reffered community articles but no use.
when I click on UI action, state needs to change to 7, then it needs to redirect to all cases in workspace
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 01:32 AM
there are lot of OOTB UI actions which use this in Scope app, but they are only Server side script
see below
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 01:28 AM
so in workspace client script you want to take the user after saving to the list?
If yes then do this
1) use GlideAjax to update the state
2) then use this to open the list
function onClick(g_form) {
// use GlideAjax
var url = '/tableName_list.do';
open(url);
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-15-2025 01:32 AM
there are lot of OOTB UI actions which use this in Scope app, but they are only Server side script
see below
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-18-2025 09:26 PM
Hope you are doing good.
Did my reply answer your question?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader