Create a custom Coveo Insight Panel Classic Component
Create a custom Coveo Insight Panel Classic Component
When integrating the Coveo Insight Panel Classic Component in your Salesforce organization, you usually want to create a custom Insight Panel instead of using the default one. This lets you add new components and custom behavior to the panel (see Reference).
Leading practice
When you want to add custom features to a custom Coveo Insight Panel Classic Component, you should duplicate the Coveo components instead of using the default ones. |
To create a custom Coveo Insight Panel Classic Component
-
In Salesforce, under Setup, search for and select Visualforce Pages (Build > Develop > Visualforce Pages).
-
On the Visualforce Pages page, select New.
-
Give your new component a Label; the Name should be filled automatically.
-
In the Visualforce Markup tab, enter the following template:
<apex:page standardController="Case" docType="html-5.0"> <CoveoV2:Box name="myCustomPanel" recordId="{!id}"/> </apex:page>
This template will use a Visualforce component called
myCustomPanel
, which you will be prompted to create when accessing your Visualforce page if it doesn’t already exist. -
When you want to use your custom Coveo Insight Panel Classic Component for something other than cases, replace
Case
with the API Name of the record you want to show.NoteRemember that custom objects have
__c
at the end of their API names. -
Save the controller by clicking Save.
Now that you have a custom Coveo Insight Panel Classic Component, you’re ready to customize it as you see fit.