Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Open knowledge search results in source system

Open knowledge search results in source 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.

Role required: admin

Procedure

  1. Navigate to System Definition > Script Includes.
  2. Open KBWebDAVContentHandler.
  3. 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 file
    
    getFileURL: function(fileObj) {
          //write your logic here
    },
  4. Click Update.