Skip to main content
Skip table of contents

Letter Templates in DCM

AppBase enables you to use templates for HTML Emails and/or Microsoft Word and use them in any AppBase application to populate fields in the template with specific content from your application. For example, you might use a New Customer Welcome Letter template to pull information from the BOM to create a PDF containing each customer’s information. The resulting letter could be placed in the CMS and work like any other file.


Email Templates

  1. Navigate to Letter Template. Click the green + New Letter Template button.

  2. Select Type as Email Html, insert Name as LOAN APPROVAL NOTIFICATION, select Root Object Type as Case, add GBANK LOAN APPROVAL NOTIFICATION for Description. Click the Save button.
  3. Click the Template Content button, type Auto Loan Application Notification for Email Subject, and insert the following text in the Email Body:

    CODE
    Dear @@,
    We are pleased to approve your Auto Loan application. The loan amount is $@@; the annual interest rate is 4%.
    If you have any questions, please call our local branch or @@, your representative will help you.
  4. From the bookmark button at the top left menu, you can select any of the available bookmarks in this solution.
  5. From the list of available placeholders, select @APPLICANT_NAME@ and drag&drop it after Dear.
  6. Select ​@APPLICANT_LOAN_AMOUNT@ from the list of available placeholders and place it after the dollar sign of the loan amount.
  7. Position the cursor in the @@ in the text ‘local branch or @@, your representative…’. Now click on the Placeholder icon(1) to select CASE_OWNER from the list(2). Click OK.

  8. Save your work
  9. Click the Test Template button and using a valid case ID (Object ID) and an email address execute the template (you are suggested to use the email assigned for this training XX@eccentexcloud.com).

    You can also populate the values of the bookmarks using the fields under the Placeholders section.
  10. If everything was OK, you will receive an email like below in your inbox (please check the Junk folder if you do not receive it in a couple of seconds).
  11. Save the template and Publish You will see your new template listed and ready to be used. Now that our template is tested and published let's hook it up with the workflow.
  12. Go back to the Setup application and open the Auto Loan milestone diagram.
  13. Fill the TemplateCode parameter with the code of our new template (LOAN_APPROVAL_NOTIFICATION) in the Email Decision rule (CUST_ltr_send_email).
  14. Save the changes to the milestone diagram and close the window.

Email Templates with Attachments

  1. Navigate to Letter Templates. Click the +New Letter Template green button.
  2. Select Type as Email Html, insert Name as LOAN REVIEW NOTIFICATION, select Root Object Type as Case, add GBANK LOAN REVIEW NOTIFICATION for Description.
  3. Save the new Template.
  4. After saving, you will see a new section called Default attachment list, Click the plus (+) button and select the NOTIFICATION_LETTER from the template the list.
  5. Save the template.

  6. Click the Template Content button, in the Subject field insert Auto Loan Review Notification - @CASE_ID@, in the Email From insert noreply@eccentexcloud.com

  7. In the Email Body section click the Source button and paste the following HTML code:

    XML
    <p>Dear <strong>@APPLICANT_NAME@</strong></p>
    
    <p>After a thoroughly review of your Auto Loan application #<strong>@Case.CaseId@</strong>, we are requiered to ask you for supplementary docucumentation.</p>
    
    <p>If you have any questions, please call our local branch or contact your representative <a href="mailto:@USRS_EMAIL@?subject=Auto Loan Review Notification - @CASE_ID@">@USRS_FULLNAME@</a>, who will be happy to help you.</p>
    
    <p>
    Best regards,
    @COMPANY_NAME@
    </p>
  8. Click the Source button again to go back to the WYSIGYG editor

    The template will not save your changes when the editor is in the Source view, you must un-select Source view before saving it.

  9. Save the template.

  10. Click the Test Template button and using a valid case ID (Object ID) and an email address (you are suggested to use the email assigned for this training XX@eccentexcloud.com) execute the template.

  11. Save the template and Publish it.


JavaScript errors detected

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

If this problem persists, please contact our support.