Deploying Search Alerts on a Coveo JS Search Page

An administrator in Coveo Cloud V1 and in Salesforce must perform the steps described in this topic before end-users can take advantage of the search alert service.

To deploy search alerts on a search page

  1. Ensure your environment meets the following requirements:

    • The search page gets results from a Coveo Cloud V1 Organization.

      The search alerts service is powered by the Coveo Cloud Search API and is not available when search results come from an on-premises CES index.

    • Users must currently be authenticated on the search interface for the search alerts service to be supported.

      The service needs to know the user’s email address to which send notifications.

    • A Coveo for Salesforce search interface linked to a Coveo Cloud V1 Organization: Coveo for Salesforce 2.29 - September 2016 

  2. Contact Coveo Support to request the search alerts service activation for your Coveo Cloud V1 Organization.

    This step is needed because the Coveo Cloud search alerts service is currently in pilot version.

  3. In your Salesforce organization, add the Search Alerts components to your Coveo JS Search page:

    1. Log in to your Salesforce organization with an administrator account.

    2. Access your Coveo JS Search page:

      1. In the navigation bar on the left, under App Setup, click Develop > Visualforce Pages.

      2. In the Visualforce Pages page, click the Name of your Coveo JS Search page.

      3. In the [Visualforce_Page_Name] page, click Preview.

    3. In your Coveo JS Search page, access the Interface Editor:

      1. In the lower-right corner of the browser window, click the Interface Editor menu button (SFInt-InterfaceEditorMenuButton).

      2. In the Interface Editor menu, click Edit.

    4. In the Interface Editor:

      1. At the top-right section of the header, click Code View.

      2. In the code view, ensure the CoveoSearchAlerts component (<div class="CoveoSearchAlerts"></div>) is present in the page.

        • By default, the component is present in Coveo JavaScript Search pages.

        • When you have no use cases for search alerts, simply remove the code line quoted above to deactivate the search alerts component, and thus stop receiving subscription requests from the user interface for /rest/search/subscriptions.

      3. Hover a search result template, and then in the top-right corner, click the Edit icon Icon-InterfaceEditor-Edit that appears.


      4. In the Template Option panel that appears, click the Layout icon Icon-InterfaceEditor-Layout.

      5. In the Layout panel, in the right section, drag and drop the Follow item component label at the place of your choice (ex., next to the Excerpt label).

        In the preview, the Follow link appears under the result title.

      6. Click Save to make changes effective.

      7. Ensure the Follow link appears under the result title, and that the Manage Alerts and Follow Query appears in the Settings menu (ac8-settingsicon icon next to the search box), and then in the top-right corner, click Save.

  4. Log in to your Coveo Organization with an Admin user role account.

  5. In the Coveo Cloud administration console Settings page, ensure the Send email alerts check box is selected (see Managing Your Coveo Cloud V1 Organization Settings).

  6. Once your search page is online, share the search page link with your end-users.

What’s Next?

In the Coveo Cloud administration console, customize the email template and subscription cancellation page (see Managing Your Coveo Cloud V1 Organization Settings).