UI action not working in Security Incident Response Workspace

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 10:01 AM
We have a custom UI action that is not working in the Security Incident Response workspace. It works fine in the new UI. Need some help on figuring out why. I have converted some of the alerts to use the g_modal method, but the script does not run that queries the records and updates them.
Here is the script (the g_modal is not included here as I am playing with that in another instance):
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2024 12:23 AM
Hello @mpmacconnell,
Please check out the link below:
https://www.servicenow.com/community/developer-forum/why-ui-action-is-not-working-in-service-operati...
If it is helpful, please mark it as helpful and accept the correct solution. In future, it might be helpful for someone to refer to this solution.
Thanks & Regards,
Abbas Shaik

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-27-2024 02:01 PM
Turns out it was the line:
gsftSubmit(null, g_form.getFormElement(), 'closeChildrenSI');
I had to change that line and got it working using the g_form method.