- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 12:53 AM
Hi All,
I have to add few functions in the OOB Script Include(reusing the other functions in the script include), but stuck with the dilemma between creating (duplicating) a new script include or modify the existing oob one. In the latter case, the challenge is to check the skipped file in every upgrade.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2019 05:29 AM
HI,
Let's say if you have a function in KnowledgeAccessSNC and you want to modify that function then what you should do is copy that function form KnowledgeAccessSNC and add it to KnowledgeAccess script include and modify that function here.
So what will happen is if you call the function as new KnowledgeAccess().functionName() then it will not use the function from KnowledgeAccessSNC but from KnowledgeAccess. if the function is not present here then it will use it from KnowledgeAccessSNC.
So basically KnowledgeAccess is used for overriding any function in extended Script include which is readonly or not recommended to modify.
Thanks,
Ashutosh Munot
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 01:01 AM
Hi Raji
I am not 100% sure but this might help. It's about extension point. Please check the below URL.
Thanks
Subhajit Majumder
If this helps, please mark helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 01:03 AM
you can deactivate the ootb one and create new script include and add your new function there.
kindly have a look on below thread. it has explained very well .

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 01:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 02:31 AM
Hi Raji,
You can extend the OOTB object (script include) and include the new functions there.
Take this as an example.
Custom functions: Hello.js
var Hello = Class.create();
Hello.prototype = Object.extendsObject(HelloBase, {
/* insert your functions here */
type: 'Hello'
});
OOTB functions: HelloBase.js
var HelloBase = Class.create();
HelloBase.prototype = {
initialize: function(){},
/* out the box functions */
type: 'HelloBase'
};