Customizing the Articles Tool

The Articles tool lets support agents browse Salesforce Knowledge articles, see whether articles are attached to a case, and share relevant articles with customers. With the support:caseArticles component, you can:

  • Customize the appearance and dimensions of the Articles tool.
  • Define how the tool’s search function works, including which article types and keywords are used by default and whether advanced search is available.
  • Specify whether agents can attach articles to emails.
Attribute NameAttribute TypeDescriptionRequired?API VersionAccess
articleTypesStringArticle types to be used to filter the search. Multiple article types can be defined, separated by commas. 25.0
attachToEmailEnabledBooleanA Boolean value that specifies whether articles can be attached to emails. 25.0
bodyHeightStringThe height of the body in pixels (px) or ‘auto’ to automatically adjust to the height of the currently displayed list of articles. 25.0
caseIdidCase ID of the record for which to display the case articles.Yes25.0
categoriesStringData categories to be used to filter the search. The format of this value should be: ‘CatgeoryGroup1:Category1’ where CategoryGroup1 and Category1 are the names of a Category Group and a Category respectively. Multiple category filters can be specified separated by commas but only one per category group. 25.0
defaultKeywordsStringThe keywords to be used when the defaultSearchType attribute is ‘keyword’. If no keywords are specified, the Case subject is used as a default. 25.0
defaultSearchTypeStringSpecifies the default query of the article search form when it is first displayed. The value can be ‘keyword’, ‘mostViewed’, or ‘lastPublished’. 25.0
idStringAn identifier that allows the component to be referenced by other components on the page. 25.0Global
languageStringThe language used for filtering the search if multilingual Salesforce Knowledge is enabled. 25.0
logSearchBooleanA Boolean value that specifies whether keyword searches should be logged. 25.0
modeStringSpecifies whether the component displays articles currently attached to the case, an article search form, or both. The value can be ‘attached’, ‘search’, ‘attachedAndSearch’, or ‘searchAndAttached’. 25.0
onSearchCompleteStringThe JavaScript invoked after an article search has completed. 25.0
renderedBooleanA Boolean value that specifies whether the component is rendered on the page. If not specified, this value defaults to true. 25.0Global
reRenderObjectThe ID of one or more components that are redrawn when the result of the action method returns to the client. This value can be a single ID, a comma-separated list of IDs, or a merge field expression for a list or collection of IDs. 25.0
searchButtonNameStringThe display name of the search button. 25.0
searchFieldWidthStringThe width of the keyword search field in pixels (px). 25.0
searchFunctionNameStringThe name of a function that can be called from JavaScript to search for articles if the widget is currently in search mode. 25.0
showAdvancedSearchBooleanA Boolean value that specifies whether the advanced search link should be displayed. 25.0
titleStringThe title displayed in the component’s header. 25.0
titlebarStyleStringThe style of the title bar can be ‘expanded’, ‘collapsed’, ‘fixed’, or ‘none’. 25.0
widthStringThe width of the component in pixels (px) or percentage (%). 25.0

Cirrus Computers wanted to customize the Case Feed articles tool so agents could more easily find articles to help resolve customers’ issues.

Cirrus used the support:caseArticles component to create an articles tool that:

  1. Appears in the right sidebar of the page and is open by default on all case pages.
  2. Uses search-as-you-type functionality to show suggested articles quickly.
  3. Lets agents attach articles to messages they write with the email action.
  4. Displays the most recently published articles when no articles are attached to a case.

Case Feed articles tool example