Update function in OOB read only script include

snowdev658
Tera Contributor

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.

2 REPLIES 2

AnubhavRitolia
Mega Sage
Mega Sage

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.

 

 

 

Please mark this as correct answer and helpful if it resolved, or mark this helpful if this help you to reach towards solution.

Thanks
Anubhav Ritolia
ServiceNow Rising Star 2023

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."