action.setRedirectURL not working in Workspace in "on insert" UI action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 03:15 AM
Good day all,
We recently upgraded from Madrid to Orlando and are now experiencing some strange behavior on the setRedirectURL not actually redirecting.
Situation:
UI action available on insert (of a case (sn_customerservice_case).
Creates an incident
After insert of the incident the redirect versions I have used are as follows:
action.setRedirectURL('incident.do?sys_id=' + grInc.sys_id);
action.setRedirectURL(grInc);
In UI16 and "on update" in Workspace they both work fine and the incident opens up as expected.
However when doing the same on insert, it just redirects to the case.
The incident is created and can be accessed can be accessed normally, but it takes a lot more clicks to get there.
As mentioned this worked great in Madrid, but no longer in Orlando.
Any ideas why this might be or should we open a HI case?
Thanks in advance!
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-13-2020 03:32 AM
Hi,
did you try this?
action.setRedirectURL('/incident.do?sys_id=' + grInc.sys_id);
Regards
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
‎05-13-2020 06:26 AM
Hi Ankur,
Thank you for your quick reply.
However, the redirect is working if it is used in a UI action that is available "on update".
It is working in UI16 for update _and_ insert.
It is NOT working on insert in Agent Workspace.