Update function in OOB read only script include
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 09:03 AM
I would like to deactivate comments made by system when group approvals are approved or rejected. Found the code in SI "ChangePolicyApprovalActivitySNC" called in function "_refreshGroupApprovalState" .
I found another extension SI ChangePolicyApprovalActivity that can be used to make changes. I have update the code commenting out the lines and added to extented SI as below , however the comments are still being added to RITM.
_refreshGroupApprovalState: function(appGroupGR, waitFor, percentageRequired) {
},
Can someone please let me know what I'm missing, should I also add the function that's calling _refreshGroupApprovalState function to extension SI.
Thank you in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 09:19 AM
Hi @snowdev658
As this is SNC Script Include which means read-only and cannot be updated at any cost.
Also, as _refreshGroupApprovalState is a private function, it cannot be called from any other Script Include.
Changes you are expecting cannot be done due to limitation by ServiceNow.
Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2022 11:33 AM
But the description on both the SI says we can modify behavior using the extended SI.
"Provides the functionality for the Change Approval Policy activity.
To modify behavior, use the provided ChangePolicyApprovalActivity extension to override functions defined within this Script Include."