Define a search source Configure a basic search source to query data from an instance table, or configure an advanced data fetch script to pull data from anywhere on the web. In the platform UI, navigate to Service Portal > Portals and select the portal you want to add search sources to. From the Search Sources related list, click New to add a search source. Define the fields on the Search Source form. Table 1. Search Source form Field Description Name The display value for the search category. ID The record ID. The value should be unique, and should not include any spaces or special characters. Application The scope of the search source. Roles If the Service Portal User Criteria Support plugin is not enabled, define user roles to access this search source. Search page template The HTML template that displays the search results. If defining a basic search source, you do not need to change the default template. For an example of a modified template, see Tutorial: set up an external knowledge base search source. Complete the fields on the Data Source tab. Field Description Is scripted source Select this option to add an advanced data fetch script. If configuring an instance table as the data source, do not check this option. Data fetch script A script defining the endpoint and API calls to fetch external data. This field is only visible when Is scripted source is selected. For an example of a data fetch script, see Tutorial: set up an external knowledge base search source. Table Select a table from the list that you want to draw your results from. You can select any table in the platform. For example, User [sys_user] or Knowledge [kb_knowledge]. Note: Only indexed tables return search results. Learn more: Enable text indexing for a table . Conditions Apply a filter to the table if you don't want all the search results to display. For example, Active is True. Primary display field Select which field you want to display in the search results. For example, Name. Display fields Select additional fields to display in the search results. For example, User ID, Email, and City. Configure Typeahead settings to allow search results to populate the search field based on user input. Field Description Enable typeahead Allows typeahead functionality. If you do not want to integrate typeahead into your search source, clear the check box. Advanced typeahead config Optionally add an advanced typeahead script to configure the way search results display. For more information, see Create an advanced typeahead template. Typeahead glyph Adds an icon beside each typeahead result. Page Defines a service portal page to display the selected result. For example, if form is configured, a selected typeahead result opens in a form. Click Submit. Tutorial: set up an external knowledge base search sourceDefine an advanced search source to return data from any source on the Internet. To understand the power of search sources, follow this tutorial to set up an external knowledge base search source.Example: set up a GitHub search sourceSet up an advanced search source that queries data from an external site. Create an advanced typeahead templateConfigure the way typeahead results display with an advanced template.