Open knowledge search results in source system

  • 릴리스 버전: Australia
  • 업데이트 날짜 2026년 03월 12일
  • 소요 시간: 2분
  • 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.

    시작하기 전에

    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

    프로시저

    1. Navigate to All > 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.