Open knowledge search results in source system
While search results are aggregated within your instance, your users can also utilize features available in the source system (being able to edit in Microsoft SharePoint, for example). To open knowledge search results in a host system, configure the URL to the external source system to open articles from search results directly in the source system.
Before you begin
Make sure the Open search results in the original source system import parameter for the external knowledge source is set to true.
You can follow this procedure when you have a file as a knowledge article in Microsoft SharePoint, for example.
Role required: admin
Procedure
Navigate to All > System Definition > Script Includes.
Open KBWebDAVContentHandler.
In the Script window, override the function getFileURL using script shown below.
The getFileURL function is shown below.
//fileObj.getName() - Returns name of the file //fileObj.getPath() - Returns path to the file from root folder //fileObj.getAbsolutePath() - Returns Absolute WebDAV URL of the file //fileObj.getCreationDate() - Returns creation date of the file as GlideDateTime object //fileObj.getModifiedDate() - Returns last modified date of the file as GlideDateTime object //fileObj.getContentType() - Returns content type of the file as GlideDateTime object //fileObj.getSize() - Returns size of the filegetFileURL: function(fileObj) { //write your logic here },Click Update.
Parent Topic:Integration with external knowledge sources