ViewedByCustomer Component

In this article

Lightning Experience Coveo for Salesforce 3.39 (August 2019)

  • For this feature to work, you need to have the corresponding service enabled. Contact us to enable this feature.

  • The CoveoViewedByCustomer component won’t work if the UserActions Component isn’t initialized on your search interface.

The ViewedByCustomer component allows your agents to see, within the Salesforce Lightning console, every result which the user clicked. It displays an icon and a label on each result, if already viewed by the customer who created the case.

The component can be added in the Coveo Insight Panel Lightning Component (see Managing the Viewed by Customer Label).

This is a result template component and needs to be added to all result templates to show all results that were viewed by the customer. If a result template is missed, results that use that template won’t display the Viewed By Customer icon.

Usage

<span class="CoveoViewedByCustomer"></span>

Options

showIcon

The icon displayed when the component is displayed itself.

The default value is true.

<div class="CoveoViewedByCustomer" data-show-icon="true"></div>

label

The label that should be displayed when the component is displayed.

The default value is Viewed by Customer.

<div class="CoveoViewedByCustomer" data-label="<MY_LABEL>"></div>

Where you replace <MY_LABEL> by the name you you want to be displayed for the component.

Method

This component doesn’t offer any method.