Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 05:13 AM
Hi @Bhoomika M ,
You just need to declare the function as in the SNC script include and add your logic, it will automatically override the SNC script include. Lets say you want to override fetchQuicklinksForTopic function, it will be as follows, no other changes needed.
var QuickLinkUtil = Class.create();
QuickLinkUtil.prototype = Object.extendsObject(QuickLinkUtilSNC, {
initialize: function() {
QuickLinkUtilSNC.prototype.initialize.apply(this, arguments);
},
fetchQuicklinksForTopic: function (topicId) {
//your new logic
},
//your new logic
},
type: 'QuickLinkUtil'
});
Best Regards
Aman Kumar
Aman Kumar