Overriding a CPM payload
This article applies to users who are upgrading to Pega Customer Service from Customer Process Manager (CPM) 6.2 SP2 and prior versions.
If you have overridden an instance of CPMPayLoad that belongs to the PegaCA-Work class or a class extending from PegaCA-Work, add the following lines of code at the top of the <script> tag:
<script>
if (!pega.u.d.cpm) {
pega.u.d.cpm = {};
}
If you have overridden CPMPayLoad from the PegaCA-Admin-Campaign class or a class that extends from the PegaCA-Admin-Campaign class, add the following lines of code at the top of the <script> tag:
<script>
if ((pega.u.d) && (!pega.u.d.cpm)) {
pega.u.d.cpm = {};
}