action.setRedirectURL not working in Workspace in "on insert" UI action

XvE
Tera Contributor

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!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

did you try this?

action.setRedirectURL('/incident.do?sys_id=' + grInc.sys_id);

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

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.