{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":47705,"path":"servicenow-platform/knowledge-management/open-search-results-ext-content.md","title":"Open knowledge search results in source system","bundle":null,"doc_type":null,"release":"australia","body":"\n# Open knowledge search results in source system\n\nWhile 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.\n\n## Before you begin\n\nMake sure the **Open search results in the original source system** import parameter for the [external knowledge source](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/knowledge-management/define-an-external-knowledge-source.md) is set to **true**.\n\nYou can follow this procedure when you have a file as a knowledge article in Microsoft SharePoint, for example.\n\nRole required: admin\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Script Includes**.\n\n2.  Open **KBWebDAVContentHandler**.\n\n3.  In the **Script** window, override the function **getFileURL** using script shown below.\n\n    The **getFileURL** function is shown below.\n\n    ```\n     //fileObj.getName() - Returns name of the file\n          //fileObj.getPath() - Returns path to the file from root folder\n          //fileObj.getAbsolutePath() - Returns Absolute WebDAV URL of the file\n          //fileObj.getCreationDate() - Returns creation date of the file as GlideDateTime object\n          //fileObj.getModifiedDate() - Returns last modified date of the file as GlideDateTime object\n          //fileObj.getContentType() - Returns content type of the file as GlideDateTime object\n          //fileObj.getSize() - Returns size of the file\n    \n    ```\n\n    ```\n    getFileURL: function(fileObj) {\n          //write your logic here\n    },\n    ```\n\n4.  Click **Update**.\n\n\n**Parent Topic:**[Integration with external knowledge sources](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/servicenow-platform/knowledge-management/knowledge-external-content-integration.md)\n\n"}}