Working with Email and Letter Templates

In CMPClosed Converged Monetisation Platform. The MDS Global product that supports customer care and billing for digital service providers., external templates determine the format and style of customerClosed In the context of the Cloud Monetisation Platform, an individual or organisation who has signed an agreement to take goods and services from a service provider. A customer receives a bill associated with one or more subscriptions, and can be a single end user or a large company with many subscriptions assigned to one agreement. correspondence.

ClosedSoftware

In CMP 8, the template solution is based on Apache Velocity 1.7. Templates are created using Velocity Templating Language (VTL). Velocity supports creating correspondence templates in HTML, PDF, RTF and TXT format. Prince is the application used to convert the merged templates into PDF format.

Templates can contain static text, dynamic content (merge fields), images, logos, a header, and a footer.

ClosedStorage

Templates are stored in a default location so that CMP can access the templates:/var/mdsglobal/sabre-server/templates . If customers want to store templates in another location, CMP must be configured with the new location by setting the comms.document.monitor.templates.location property for the sabre-comms module in the Administration ConsoleClosed An operations web console that allows batch jobs to be scheduled, run manually and monitored. The console also provides for viewing and modification of business and user applicable system configuration.. See the online help for the console for instructions on how to edit module properties.

Once correspondence is processed, a dedicated daemonClosed A computer program that runs as a background process, rather than being under the control of an interactive user. stores the generated letters and emails in long-term storage so that they can be viewed in AgentViewClosed The graphical user interface of the CMP that is typically used by Customer Service Agents to access CMP customer and billing data. In versions prior to CMP 8.0, this was called the CMP GUI..

ClosedTemplate UserClosed A person with the capability to log in to the CMP GUI software, such as a customer service advisor or agent. Guides

The Velocity user guide is available here: http://velocity.apache.org/engine/devel/user-guide.html

Documentation for Prince is available here: https://www.princexml.com/doc/

ClosedNaming Convention for Templates

Language Codes:

  • EN = English
  • SP = Spanish

ClosedAdding Default Fields and Objects to Templates

Adding Default Fields

To add customer data from a default field to a template, add a leading dollar symbol ($) to the fieldDataMap reference, then in square brackets - [ ] - supply the default field name, enclosed in single quotes:

$fieldDataMap['<default field>']

For example, the following adds accountClosed In the Cloud Monetisation Platform, a billing entity that can be used to manage payments on one or more subscriptions or payments for services. An account can hold details such as payments or invoices. balance information to a communication:

<br/>
Total Balance: $fieldDataMap['ACCOUNTBALANCE']<br/>
Total Amount Due: $fieldDataMap['ACCOUNTAMOUNTDUE']<br/>
Total Amount In Query: $fieldDataMap['ACCOUNTAMOUNTINQUERY']<br/>
Total Amount In Arrears: $fieldDataMap['ACCOUNTAMOUNTINARREARS']<br/>
<br/>

For a full list of CMP default fields, see the topic CMP Default Fields.

Adding Objects

Objects such as images, logos, headers, and footers must be stored within the same file-sharing system as the template. Templates reference these objects in order to include them in emails and letters.

Reference an image using imageStoreMap by providing the filename of the referenced image enclosed in single quotes in square brackets as follows:

<img alt="mds_logo.png" src="data:image/png;base64,$imageStoreMap['mds_logo.png']" style="width:304px;height:228px;"/>

Adding External References

You can use externally available objects by referring to a standard URL, for example:

<img src="http://www.mdscem.com/sites/default/files/2016-06/Retail-VNOClosed Virtual Network Operator. See MVNO or Mobile Virtual Network Operator.-Image-Banner.png">

For a full example of a template, see the section, Example Template Code and Example Email Template.

ClosedExample Template Code

ClosedExample Email Template

The following is the code for template of an email sent about an overdue bill:

$fieldDataMap['ADDRESS1']

$fieldDataMap['ADDRESS2']

$fieldDataMap['ADDRESS3']

$fieldDataMap['ADDRESS4']

$fieldDataMap['ADDRESS5']

$fieldDataMap['POSTCODE']

$fieldDataMap['FIRSTNAME']

$fieldDataMap['SHORTDELIVERYADDRESSNAME']

Account Number $fieldDataMap['ACCOUNTNUMBER']

Account Balance $fieldDataMap['ACCOUNTBALANCE']

Total Amount Due $fieldDataMap['ACCOUNTAMOUNTDUE']

$fieldDataMap['DEARSIRMADAM']

We are writing to inform you that we have not yet received payment for your account. If full payment has been made

within the last 7 days, please accept our thanks and ignore this letter.

For us to continue providing your service without interruption, we must receive outstanding payment of the full amount within 5 days

of the date of this letter. Failure to do this will result in your service being restricted to incoming calls only until the full amount is settled,

or until the service is fully disconnected. Payment details are listed below.

1. Pay online using the website or via the app

2. Automated Telephone Payment: Call 0111 0222 0333

3. Speak to an advisor: Call 0111 0222 0000. Calls to both these numbers are free from your mobile. From other phones they cost the same as the standard

landline and will come from any inclusive minutes.

Please note, failure to pay your bills when due may affect your credit rating and could possibly hinder future

applications for credit, including mortgages.

Paying by Direct Debit means you never have to miss a payment, you can set up a direct debit using the website or app.

If you have any queries regarding payment of this balance please contact us on 0111 0222 0000.

The Globotel team

 

The following is the email produced by the template:

The email produced by the HTML example