CaseDeflection Lightning component
CaseDeflection Lightning component
The CaseDeflection Lightning component lets you insert a case deflection component in your Experience Cloud site.
It takes care of wrapping and including the correct scripts and different resource references needed to do so.

|
Note
For a guide on how to implement a custom Lightning component, see Integrating the Coveo Components in a Custom Lightning Component. |
Usage
Reference it in your Lightning component as you would for any other Aura component, using the namespace prefix of the Coveo package.
<aura:component implements='forceCommunity:availableForAllPageTypes'>
<CoveoV2:CaseDeflection/>
</aura:component>
Resources included with this component
This component includes the Coveo JavaScript Search Framework, the jQuery
(latest 3.x.x version) library, and the Coveo for Salesforce specific assets.
|
Note
Since Lightning Locker is automatically enabled on this component, the underscore result templates aren’t supported. You must use HTML templates instead. |
Options
The component offers the following options:
name
-
As of the Coveo for Salesforce v5 release
The name of the
Page Content
record that contains the HTML code of your search interface. -
Prior Coveo for Salesforce versions
The name of the Visualforce component that contains the HTML code of your search interface.
Default value is communityCaseDeflectionCoveo
.