Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Script include Protection policy

moko6283
Tera Contributor

Hi,

 

How can I manipulate the Script Include "CommunityUtilSNC"? this script include is used in workflow "Community - Content Approval activity".

There is a notice because this item is read-only based on its protection policy.

 

Could you please help me!

7 REPLIES 7

DrewW
Mega Sage

Several options

1 - You don't modify the script include and just live with how it works.

2 - Look to see if there is a "CommunityUtil" and check to see if it inherits CommunityUtilSNC and if it does then modify the "CommunityUtil", since that is probably the one that is used everywhere.

3 - Copy the code to a new Script Include that has a slightly different name, modify that and then find all of the places that "CommunityUtilSNC" is used and replace it with your script include.  I do NOT recommend this option at all.

 

moko6283
Tera Contributor

@DrewW Thanks for your answer, but I just wanted to know how can I copy the code, I'm not able to see anything.

moko6283_0-1679688278140.png

 

Oh its one of those.  You can try and export it or use a background script to dump it to the log but I do not think any of those work anymore so you are stuck.  If you have an issue with it log a support case and poke them for answers.

 

The assigned TSE will likely not change that. moko6283 needs to describe his/her goals and find another way to achieve the goal.