Configuring Mail Merge Letters
In each workbench you can generate letters to send to one or more individuals or companies. You need to set up a mail merge document in Word, using a datafile that Coins ERP+ generates. On some letters, you can include information from the relevant captions.
To configure a letter:
Configure the letter record:
Go to Letter Configuration.
Use the filter to display the letter type you want to add.
Click Add (
) to add a new letter.
Fill in the fields (refer to the side-frame help).
Select any captions that you want to include in the letter.
For purchaser letters, select any utility companies that you want to include information about.
Click Save (
) to save the letter.
The letter description will appear on the Options menu for the relevant workbench.
Generate a sample data file that you can use to set up the Word document:
If the letter will be run from an event, run that letter event.
If there is a mail shot function in Coins ERP+, run that to generate the data file.
Coins ERP+ saves the data file (either in the location you specified in Letter Configuration, or in a temporary folder on your PC, depending on the HS/OAMMDF parameter), but since the Word document does not yet exist, it produces an error.
Create a mail-merge letter in Word, using the data file as the data source. Note that there are various merge fields for the different people on the record; the combined name fields, like Combined_Names and Combined_Full_Names, will be different depending on whether the letter is configured to create a single letter, one per address, or one per person.
Save the document. Depending on the setting of the HS/OAMMDOC parameter, either:
put the document in the /word/ subdirectory of the Coins ERP+ environment on the Coins ERP+ server.
put the document in the location you specified in Letter Configuration.
The filename must be the same as the name you entered in the Document field.
Now when a user chooses the letter from the workbench Options menu, Coins ERP+ generates the mail merge and opens the Word document in a new window.
Configuring SMS Campaign Reply Options
As part of GDPR rules, a person that is contacted must have the ability to reply in the same format. The topics below explain how to configure SMS campaigns to provide recipients a way to reply and opt out of any future marketing messages.
SMS Replies – Clickatell Configuration
As part of the new GDPR rules, a person that is contacted must have the ability to reply in the same format. This topic explains how to configure SMS campaigns to provide recipients a way to reply and opt out of any future marketing messages.
This feature assumes you are using Clickatell as the SMS gateway.
Clickatell Configuration
To allow receiving of replies to SMS messages, a two-way number is required from Clickatell. Short codes or full telephone numbers can be obtained from Clickatell.
When configuring an SMS integration in Clickatell, the ‘Two-way settings’ tab needs to be populated to enable replies to be received.
The call back method should be set to HTTP POST. The target address for the call back will be like the Coins ERP+ login URL except wologin.p will be replaced with wousms.p.
For example, if the URL to login into Coins ERP+ is:
Then the call back URL will be:
The target username and password should be left blank in Clickatell. The gateway attribute should be set to Clickatell. The replyKey attribute should be set to the value specified in the SY parameter SMS-RKEY. Note the call back URL must use the https protocol.
The API type for the integration should be set to REST:
The SY parameter SMS-ADDR should be set to the following:
You also need to consider your firewall configuration to ensure it will allow Clickatell’s servers to access the Coins ERP+ call back URL.
Configuration in Coins ERP+
The following SY parameters must be set as follows:
Set SMS-TYPE to REST if users wish to handle replies.
Set SMS-KEY2 to the two-way messaging authorisation API key generated in Clickatell when setting up a SMS integration.
Set SMS-TEL2 to the telephone number to use for 2-way messaging (purchased through Clickatell).
Set SMS-ERR to the email address to which any errors when processing the reply will be sent.
Set SMS-RKEY to a two-way messaging reply key that you invent. This must then be specified in the call back URL to provide an additional security check.
Use SMS-REM to provide the text of a message which is sent to a person if their reply cannot be processed. For example, this could advise them to contact you in a different way.
If you are using the user-defined consent categories, you should also use Data Consent Sources to set up a source to represent an 'unsubscribe' reply.
SMS Message Templates
The configuration of whether a reply is expected for a SMS message is done via the Email/SMS Templates function. See Configuring SMS Templates for Replies.
SMS Replies – Text Marketer Configuration
As part of GDPR rules, a person that is contacted must have the ability to reply in the same format. This topic explains how to configure SMS campaigns to provide recipients a way to reply and opt out of any future marketing messages.
This topic assumes you are using Text Marketer as the SMS gateway.
Text Marketer Configuration
To allow receiving of replies to SMS messages, a two-way number is required from Text Marketer. Short codes or full telephone numbers can be obtained from Text Marketer.
The call back method should be set to HTTP POST. The target address for the call back will be like the Coins ERP+ login URL except wologin.p will be replaced with wousms.p.
For example, if the URL to login into Coins ERP+ is:
Then the call back URL will be:
Note there must be an & at the end. The additional attributes in the URL are appended to this by Text Marketer.
You also need to consider your firewall configuration to ensure it will allow Text Marketer’s servers to access the Coins ERP+ call back URL.
Configuration in Coins ERP+
The following SY parameters must be set as follows:
Set SMS-TYPE to TM-Text Marketer if users wish to handle replies.
Set SMS-USER and SMS-PWD to the username and password provided by Text Marketer. They are shown on the API config section under account settings.
Set SMS-TEL2 to the telephone number to use for 2-way messaging (a ‘txtUs Number’ purchased from Text Marketer). This is used on messages that expect a reply (that is, messages based on templates that have Reply Option set to Workflow or Unsubscribe).
Set SMS-FROM to the number or name you want to appear on messages that do not expect a response (that is, messages based on templates that have Reply Option set to No Reply). This can be the same as SMS-TEL2.
Set SMS-ERR to the email address to which any errors when processing the reply will be sent.
Set SMS-RKEY to a two-way messaging reply key, which you decide on. This must then be specified in the call back URL to provide an additional security check.
Use SMS-REM to provide the text of a message which is sent to a person if their reply cannot be processed. For example, this could advise them to contact you in a different way.
Leave the SY parameter SMS-ADDR blank.
If you are using the user-defined consent categories, you should also use Data Consent Sources to set up a source to represent an 'unsubscribe' reply.
Mobile Number Formats
To ensure that the mobile number the reply is sent from can be matched to a number held in Coins ERP+, the mobile number will be converted to international format first – this will be stored on the message log. This will enable replies to be matched to the correct SMS log records.
If you enter the international dialling code for mobile numbers on the People Workbench records, Coins ERP+ uses this to convert the mobile number to international format. Otherwise the dialling code specified by the System parameter SMS-IDC will be used; set SMS-IDC to the code for your country (as specified in System > Misc Maintenance > International Dialling Codes).
SMS Message Templates
The configuration of whether a reply is expected for a SMS message is done via the Email/SMS Templates function. See Configuring SMS Templates for Replies.
Configuring SMS Templates for Replies.
The configuration of whether a reply is expected for a SMS message is done via the Email/SMS Templates function.
Go to Email/SMS Templates.
Open the message you want to configure.
The reply options fields are available if the SY parameter SMS-KEY2 is populated.
In the Reply Option field, select the appropriate option:
No Reply – No reply option is provided. This is the default option for new and existing records.
Workflow – This allows a workflow to be launched when the reply is received. If you select Workflow, in the Workflow field enter the code of the workflow to launch.
Unsubscribe – This allows a person to unsubscribe from marketing SMS messages. It allows easy configuration of an unsubscribe option and avoids the need to configure workflows. If the user-defined consent categories are used, this will update the selected consent category and source. If they are not used, this will update the Do Not SMS field.
The following instructions assume you have selected Unsubscribe.
In the Reply Value field, enter the value that will trigger the unsubscribe. (This is the message you want the person to send to opt out, for example UNSUBSCRIBE or STOP.)
If you are using the user-defined consent categories:
Tick the category (or categories) that will be updated if the person replies with the reply value above.
Select the Consent Source. This will probably be something like "Unsubscribe SMS".
If you want to send a message to the person to confirm that they have been unsubscribed, enter the message in the Confirmation Message field.
If you want to send a message to the person if the unsubscribe was not successful (because they sent an incorrect reply), enter the message in the Failure Message field.
Save the template.
















