Go to production

In this article

When pushing your changes to production, you must migrate your entire organization, including your Coveo settings.

This article provides leading practices to migrate your development environment to a production environment, which is the last step of the Coveo for Salesforce integration.

Migration checklist

You must follow these guidelines when migrating your Coveo for Salesforce development environment to production:

Additional v5 migration guidelines

If you’re using Coveo for Salesforce v5.2 or a later release, make sure to follow these additional guidelines to migrate your development environment to production. For context as to why these additional steps are necessary, see Upgrade from v4 to v5.

  1. Using the data export tree, enter the following command to export your records:

    sf data export tree --query "SELECT Id, Name, CoveoV2__PageContent1__c, CoveoV2__PageContent2__c, CoveoV2__PageContent3__c, CoveoV2__PageContent4__c, CoveoV2__PageContent5__c, CoveoV2__PageContent6__c, CoveoV2__PageContent7__c, CoveoV2__PageContent8__c FROM CoveoV2__PageContent__c" --target-org <MY-SANDBOX-ORG>

    Where:

    <MY-SANDBOX-ORG> is the alias of your source sandbox organization.

  2. Enter the following command to deploy your records:

    sf data import tree --files CoveoV2__PageContent__c.json --target-org <MY-PRODUCTION-ORG>

    Where:

    <MY-PRODUCTION-ORG> is the alias of your target production organization.

    Tip
    Tip

    Using this command to deploy your records will prevent you from having to access the Interface Editor to edit the HMTL markup for the result templates of each search interface that you implemented.

    Important
    Important

    This task will create another PageContent record. It won’t overwrite an existing entry. Therefore, be careful if you’re only trying to apply new changes to an existing page. You may need to manually delete the existing record.

    To delete an existing entry

    1. In the Developer Console, enter the following command to query the records:

      SELECT Id, Name FROM CoveoV2__PageContent__c
    2. Delete the older entry.

      Note

      Not deleting an older entry won’t prevent your component from loading. However, when loading a Coveo page and querying for the HTML content, the first record with the matching name will be chosen and returned.