Open UI16 URL from Agent workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 12:02 AM
I like to open UI16 URL from an UI action in Agent workspace.
I have a UI action "Create Security Incident" in an Incident form. By clicking the button it should redirect to Security Incident new record creation form in UI16.
I used below line of code in workspace script in UI action but it is not working. Please suggest.
action.setRedirectURL('sn_si_incident.do?sys_id=-1&sysparm_query=parent='+current.sys_id);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 01:59 AM
Hi,
Given below are three possible options, you can use any of these as per your need:
function onClick() {
//top.window.location ='sn_si_incident.do?sys_id=-1&sysparm_query=parent='+g_form.getUniqueValue();
//top.window.open('sn_si_incident.do?sys_id=-1&sysparm_query=parent='+g_form.getUniqueValue(), '', 'height=500,width=800');
top.window.open('sn_si_incident.do?sys_id=-1&sysparm_query=parent=' + g_form.getUniqueValue(), '_blank');
}
Uncomment one and comment other two line and test, all three line have different behaviors.
Thanks,
Anil Lande
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 04:05 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 04:22 AM
Can you please share screenshot of your UI action?
Thanks
Anil Lande
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2022 11:38 PM