Skip to main content
Skip table of contents

Document Templates

First, prepare the Word document to use the bookmarks from DCM. We will work on a pre-filled file located in the Practice Resources folder.


Editing the Word document

  1. Open the MS Word, under the Developer tab turn on Design Mode.



    Note: If you don't have the developer tab visible, then follow these steps to show the Developer tab in your Office application:
    (https://support.office.com/en-us/article/Show-the-Developer-tab-e1192344-5e56-4d45-931b-e5fd9bea2d45)

  2. Here is a list of some bookmarks available that you can use in MS Word:

    1. APPLICANT_CREDIT_SCORE
    2. APPLICANT_NAME
    3. APPLICANT_LOAN_AMOUNT
    4. CASE_STATE
    5. CASE_CREATEDDATE_SD
    6. CASE_CREATEDDATE_LD
    7. Case.CaseId
    8. SYSTEM_DATE
  3. Open the MS Word file LTR_Tutorial_Notification Letter_highlighted.docx located in the folder Practice Resources.
  4. Select the case number from the ‘RE: Application #: CASE-2017-183’ text and click Rich Text Content Control in the Controls section on the Developer tab. Now we can notice the control border around our selected text. At this point, we have a container filled with a static value.

    To make this control dynamic, in the sense that this control will be discovered by the letter generation engine and replaced with the desired value, we need to tag this control with a bookmark name.

  5. On the Content Control Properties dialog, fill in the Tag field the bookmark name CaseId. Copy the same value to the Title field. Click on the OK button.
  6. Select Sir/Madam and click Rich Text Content Control in the Controls section on the Developer tab.

  7. Keep the control selected and click on the menu in the Controls section. Now on the Content Control Properties dialog, fill in the Tag field the bookmark name APPLICANT_NAME. Copy the same value to the Title Click on the OK button.

  8. Add the tag CASE_CREATEDDATE_SD in the Submitted Date

  9. Finally, insert the using the SYSTEM_DATE tag in the paragraph Generated on 10/18/2017

  10. Save the document with a different name.

  11. Your document might look like the following

Registering the MS Word Template

We have a letter template with tagged controls. Now is the time to return to our DCM solution to add this MS Word template.

  1. Open the Letter Generation application in the AppBase application selector. In Letter Templates, add a new MS Word template.

  2. Select ‘MS Word’ from the Type drop list. Enter ‘NOTIFICATION_LETTER’ for Name and select ‘Case’ for Root Object Type.

  3. Select the Template Content button

  4. Upload the MS Word letter template file created in the previous steps.

  5. Save the template.
  6. After saving the new template, Select the Test Template button. Insert a valid Case Number to test our new template, click on the Run button.
    After a few seconds, the generated MS Word document will be ready to download and will be saved with a name pattern like ‘LTR_Tutorial_Notification_Letter_99a99b.docx’.


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.