Customized Edit Action in RITM Approvers Related(SOW) List Not Working After Australia Upgrade
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
We are experiencing an issue with a customized Edit Declarative Action in the Approvers related list on the Requested Item (RITM) in SOW after upgrading our ServiceNow instance to the Australia release.
The Edit functionality was customized using a Declarative Action with a Client Script to open the sys_m2m_template.do page and allow users to manage approvers.
The Client Script used in the Declarative Action is:
function onClick() { var _strLink = '/sys_m2m_template.do?' + 'sys_is_list=true&' + 'sys_is_related_list=true&' + 'sysparm_collectionID=' + g_form.getUniqueValue() + '&sysparm_query=' + '&sysparm_referring_url=' + location.pathname + '&sysparm_stack=no' + '&sys_target=sysapproval_approver' + '&sysparm_m2m_ref=sysapproval_approver' + '&sysparm_collection=sc_req_item' + '&sysparm_collection_key=sysapproval' + '&sysparm_collection_label=Approvers' + '&sysparm_collection_related_field=approver' + '&sysparm_collection_related_file=sys_user&'; var win = top.window.open(_strLink, '_self'); win.focus(); }
Issue
This customization was working as expected before the Australia upgrade.
After the upgrade:
- The customized Edit Declarative Action is displayed.
- Clicking the button does not execute the expected Client Script.
- The sys_m2m_template.do page/slushbucket does not open.
- No error message is displayed.
- The page remains unchanged.
As a basic test, we also replaced the Client Script with:
function onClick(g_form) { alert('Test action executed'); }
However, the alert is not triggered either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
9 hours ago
if this was working fine before upgrade then raise a case with ServiceNow.
any browser console error?
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
7 hours ago
Hi @Ankur Bawiskar ,
Raised a case with ServiceNow; however, since this involves a customization, there are limitations on the level of support they can provide.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
that's true.
don't use alert, try to use console.log() to debug
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader