Sales/Service Cloud Connector - Next Best Recommendations Template

The Marketing Cloud Personalization CRM Recommendations template is designed for use alongside the Next Best Recommendations component of the connector for Sales and Service Clouds. When configuring the template, it is important that you only modify the following parts.

  • Maximum items returned
  • Recommended itemType (Product, Blog, Article, and so on.)

Any changes to the template outside the preceding areas could break the component's ability to render the response. As noted in the business user documentation, impression, and click data is currently not sent back to Personalization Campaign from CRM.

To use the following server-side template, you need Personalization Connector for Sales and Service Cloud version 1.8 or later. If you're unsure of your CRM package version, you can check your package version by doing the following.

  1. Log into your Sales/Service Cloud account.
  2. Navigate to the Setup page by clicking the gear icon in the top-right corner and then Setup.
  3. In the left-hand navigation menu, select Apps > Packaging > Installed Packages.
  4. Search for "Personalization Connector for Sales and Service Cloud".

The package version number is listed alongside the package name.

If you're running version 1.5 or lower, you can upgrade your AppExchange package by navigating to the connector AppExchange page, downloading the latest version, and then selecting Upgrade for all users when prompted.

If you're running version 1.6 or 1.7, you have to uninstall your existing package and reinstall the latest version. After you've upgraded to version 1.8, you will not need to uninstall the package for future updates, as you become eligible for the upgrade option outlined for those users on version 1.5 or lower.

For instructions on upgrading your package, see Install Personalization Connector for Sales and Service Clouds on the Salesforce Help site.

The following code sample contains Typescript code for the Personalization CRM Recommendations template.