Sales/Service Cloud Connector - Einstein Decisions Template
The Marketing Cloud Personalization CRM Einstein Decisions template is designed for use alongside the Next Best Action component of the connector for Sales and Service Clouds. When configuring the template, code available below, it is important that you only modify the following parts:
- Maximum promotions returned
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 2.0. If you're unsure of your CRM package version, you can check your package version by doing the following.
- Log into your Sales/Service Cloud account.
- Navigate to the Setup page by clicking the gear icon in the top-right corner and then Setup.
- In the left-hand navigation menu, select Apps > Packaging > Installed Packages.
- 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 or version 1.8 or later, 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 will have to uninstall your existing package and reinstall the latest version. After you've upgraded to version 2.0, you will not need to uninstall the package for future updates, as you will then 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 Cloud on the Salesforce Help site.
The following code sample contains Typescript code for the Personalization CRM Recommendations template.