Need to protect a Script Include that will be loaded to another instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I am developing an application for a client and it has a Script Include that needs to be encripted when I deploy it to the client's instance, because it is my intelectual property. However, when I try to select the "Protection policy" to "Protected" and upload it via update set XML, it does not work, as it shows my code and even lets the other instance user change the protection policy. How is this protection supposed to work? Am I doing something wrong or is something missing?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Per the Developer training, I'm pretty sure the Protection policy only applies to apps downloaded from the Store. You may be able to publish it to the store and then download it in the client's instance, thus enacting the protection policy.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
as per my understanding....protection policy on a script include does not work the way most people expect when you’re moving it between instances in the same company via an update set.......because the protection mechanism is actually designed for applications distributed through the servicenow app store.....so that when a packaged store app is installed the script include code is hidden or encrypted.....but that protection is not enforced for update sets moving between your own instances...
If you found my response helpful, please mark it as ‘Accept as Solution’ and ‘Helpful’. This helps other community members find the right answer more easily and supports the community.
Kaushal Kumar Jha - ServiceNow Technical Consultant - ServiceNow Class of Legends 2025
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
where are you developing it? if it's in your PDI and then migrating to client instance why would you protect it?
the protection policy works only when app is installed from ServiceNow store or published using app repository
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader