Upgrading From Coveo for Salesforce V2 to V3

To know what is new with Coveo for Salesforce V3, see What Is New In Coveo for Salesforce V3?.

While upgrading from Coveo for Salesforce V2 to V3 should not break your environment, there are a few things that changed in the package that could affect your integration and customizations.

Upgrade to the Latest Coveo for Salesforce V2 Package

Before upgrading from V2 to V3, you should ensure that you install the latest Coveo for Salesforce V2 package (see May 2018 Maintenance Release - v2.51.4).

Installing the latest package is essential to be able to install the Coveo for Salesforce V3 package.

Coveo JavaScript Search Framework V2

Since Coveo for Salesforce V3 uses the Coveo JavaScript Search Framework V2, you should review the JavaScript Search Framework Version 1.x to 2.x Breaking Changes and Migration Guidelines.

Hard Coded Result Template Icons

If you had hard coded values for the value option of the icon component in your result template (see Coveo Icon Component - value), those icons will not be displayed anymore. You can however reselect a value from the Interface Editor to use the new SVG equivalent icon.

If you used custom icons using the recommended best practice, your result templates will not be affected (see Using Custom Icons in Result Templates).

This affects all the default result templates of the Coveo for Salesforce Free edition.

Renamed $Resource Components

When creating custom components, you can reference the resources bundled with the Coveo for Salesforce package (see $Resource). The name of some of those resources has changed from V2 to V3.

The Coveo for Salesforce V2 resources should still exist in your environment even after upgrading to V3. However, you are encouraged to reference the new resources instead, so you can benefit from the new features, enhancements, and bug fixes.

Coveo for Salesforce V2 Coveo for Salesforce V3 equivalent

$Resource.interfaceEditor

$Resource.interfaceEditor
$Resource.resources

$Resource.assets

$Resource.analytics

$Resource.jquery

$Resource.styleguide

$Resource.underscore

$Resource.JsSearch $Resource.searchUi
  • The interfaceEditor resource has not changed names.
  • The resources resource was split into five different resources:
    • assets: references all of the Coveo for Salesforce specific resources.
    • analytics: references the coveo.analytics.js project (see coveo.analytics.js).
    • jquery: references the latest 3.x.x jQuery version, packaged with Coveo for Salesforce.
    • styleguide: references the Coveo Vapor style guide (see React Vapor).
    • underscore: references the latest 1.x.x Underscore version, packaged with Coveo for Salesforce.
  • The JsSearch resource was renamed to searchUi, and now references the Coveo JavaScript Search Framework V2.