Mail Merge templates are Word documents with elements for dynamic content. Their purpose is to generate letter with dynamic content that gets populated from Rules or other sources. The dynamic elements in these templates are called Placeholders. The Word documents need to be in Windows 2007 or 2010 format. Read the the Designing a template for instructions on creating a new template.
Creating template folders
It's convenient to categorize your Mail Merge Templates using a folder structure.
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Right-click on either the AppBase node or an existing folder node and select the New Folder menu item.
- A white text field appears, enter a meaningful name for it and press the Enter key.
Cloning folders
Cloning the folder copies all the sub folders and Mail Merge Templates into a new folder.
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Right-click on either the AppBase node or an existing folder node and select the Clone Folder menu item. The Add Similar popup appears.
Enter the properties as follows:
Property Description New Name Enter a meaningful names. This name can be displayed when you let your users select the template they want to use. API Permanent ID This field is automatically prepopulated and needs to be unique across all Mail Merge Templates in your environment. - Click Clone
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Left-click three times on the name of a folder node you want to edit.
- A white text field appears, enter a meaningful name for it and press the Enter key.
Deleting a folder
Deleting a folder will delete all it's sub folders and all their containing Mail Merge Templates.
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Right-click on either the AppBase node or an existing folder node and select the Delete menu item.
- A confirmation message will appear, click Yes.
New Mail Merge Templates
Mail Merge Templates are Microsoft Word documents.
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Right-click on either the AppBase node or an existing folder node and select the New Template menu item. The New Letter Template popup appears.
Enter the letter template properties as follows:
Property Description Template Name Enter a meaningful names. This name can be displayed when you let your users select the template they want to use. API Permanent ID This field is automatically prepopulated and needs to be unique across all Mail Merge Templates and Email Templates in your environment. Word Upload Select a Microsoft Word document. The Designing a template page has instructions on creating Mail Merge compatible Word documents. - Click Save
- The View Letter Template page displays. Go to the Placeholders tab.
- Double click a Placeholder's Bookmark cell and map it to an existing Bookmark. A Placeholder does not require a Bookmark, you can leave the cell empty and have the content be determined manually every time the document get generated. More about that is explained below.
Cloning a template
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Select the folder where your template is.
- On the right side next to the Name of the template, click the Clone button.
Enter the properties as follows:
Property Description New Name Enter a meaningful names. This name can be displayed when you let your users select the template they want to use. API Permanent ID This field is automatically prepopulated and needs to be unique across all Mail Merge Templates in your environment. - Click Clone
Editing an template's fields and body
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Select the folder where your template is.
- Click on the Edit button next to the template you want to modify. The Edit Letter Template pop up displays.
- Update the Modify Bookmark Edit Letter Template pop up.
- Click Save.
Editing a template's placeholders
- Open Environment's Setup of your solution's environment.
- From the left menu, select Letter Templates -> Mail Merge Templates
- Select the folder where your template is.
- Click on the template's name (blue link) whose placeholders you want to manage. The View Letter Template page displays.
- Go to the Placeholders tab and update them.
- Click Save.
Using this feature
The most common way to use this feature is from a page by making an AJAX request. You can also call this service from a rule using WCF.
JavaScript Example
Text
CURL Example
Text
WCF Example
Text