Introduction

This document contains a full guide of how to create new email templates for a customer, prepare them as notifications, configure these notifications and link them with the respective workflow.

Firstly, it is important to understand how to find the email server linked with each project and what is needed to login in this email server. Then, you will find an explanation of all the procedures to create your email templates and finally, a guide of how to link the email templates with the respective workflows inside your OneDealer project.

Login in the email Server

Each project is linked with an email server. In order to login in the email server:

  1. Follow the email Server URL given to you

OR

Find the URL from OneDealer. Login into OneDealer with an admin User -> Main Menu -> Setup -> Administration -> Setup -> Search for the “ODNotificationServiceURL” key -> The URL is the one inside the Entity Value field

  1. After following the URL, use your OneDealer credentials to login.
  2. First enter your email and press continue. The system will check in how many OneDealer projects, linked with this email server, this email exists as account and bring back a selection.
  3. Then select the project/company from the drop-down list “Company”
  4. Enter your password and select continue

 

Main Components

In order to create an email template, you need the URL of the email server linked with the project in question. There are three main menu buttons (pages) on the header of the website:

  • Master Templates
  • Mail Templates
  • Document Templates

In addition, four more important UI elements can be found at the top right corner of each page:

  • Logout: By clicking it the User can logout completely from the application.
  • New Template: With this button the user can create a new Template, based on which page they are.
  • Search: Help the user search for content within the page
  • Filter Button: Here the user can select which filter should be available in the current page. Each page has a different set of possible filters

In this document we will talk about Notification Templates, for Document Templates consult the respective configuration document.

The whole process consists of two steps.

  1. Create “Master Template”: You need to create a “Master Template” for every language. The “Master Template” will contain the common elements exist in all “Mail Templates”.
    e. logo, header, footer, etc.
  2. Create “Mail Templates”: You can create all “Mail Templates”, which is the content of each email you have, for that specific language and linked them with the “Master Template”.
    e. you create one “Master Template” (in English language) and many “Mail Templates” (in the same language).

*Alternatively, the Master Template can be empty and include only the {Body} parameter (more information in page 7) and add all the design every time in Mail Template, even if it is the same for several emails.

Create a “Master Template”

Go to the Master Template and click on New Template button located at the top right corner of the page.

Provide content for the following fields and click on Create button.

  • Master Template Name: Avoid using spaces, this field act as a Template Code.
  • Title: Try including the Name of the project within the Master Template Title. i.e.
  • Template Type: Ensure that Smart is selected
  • Language: Select the Language you are planning to create emails for.
  • Assign To: Select for which project/customer this email template is for.

Click on Master Template box to design the content. The editor line will appear as soon as you click inside the box.

During the design phase of the “Master Template”, do not forget to point where the “Mail Template” (Content) will appear, by inserting the parameter {Body} at that specific location.

Click on Save button (top right corner) to store the changes on the “Master Template”.

After saving click on Back to List (top right corner, next to Save/Edit button) to return on the “Master Template List”.

Find the “Master Template” you created by clicking on the field “MasterTemplateName” downwards arrow icon and selecting the name you created.

Click on the downwards arrow icon located at the right side of the “Master Template” and select:

  • Edit for further modifications on the “Master Template”.
  • Details just to view the template
  • Delete to delete it completely

Create a “Mail Template”

Go to the Mail Templates and click on New Template button located at the top right corner of the page.

Provide content for the following fields and click on Create button.

  • Master Template Code: This field is the one which links the “Mail Template” with the “Master Template” created at the previous step. Here you choose the Master Template that will be used as default for this template
  • Template Name: Unique identifier for the template
  • Model Type: Provides extra information based on the business logic (sales, service, complaint, mobility, purchase). Any of those option makes available, a corresponding set of parameters, inside the Smart Template.
  • Title: The title that will be used for the notification (for emails, it'll be the subject)
  • Language: Inherited from the default Master template (you'll have to create a Master template for each language you want your notifications in)
  • Assign To: All the installations this template will be usable from

Click on the “Smart mail Template” box to design the content.

Click on Save button to store the changes on the “Mail Template”.

Then click on Back to List (top right corner) link to return on the “Mail Template List”.

Find the “Mail Template” you created by clicking on the field “TemplateName” downwards arrow icon and selecting the name you created. Alternatively, filter with the Master Template and all the mail templates related to this Master will appear in the list

Click on the downwards arrow icon located at the right side of the “Mail Template” and select Edit for further modifications on the “Mail Template”.

Add Parameters

How to add a parameter

To add parameters within the Templates, open a “bracket { ” wherever, within the template, you want to add a parameter. As soon as you open the bracket, the list with available parameters will open.

To write parameters:

  • Either write the parameter as it is within the list and then add a dot a new set of parameters, related with the one just written, will appear.
  • Or, find the parameter you want using the up/down arrows in the keyboard and once you find the correct one, click on Tab. The system will add the chosen parameter, add a dot and display you the second part. You can choose again using the arrows and clicking on Tab.
  • Or use your mouse to select from the list.

A final form of a parameter should be as below:

  • {BusinessPartner.FullName}
  • {MyAccountUrl}

Add link of documents

To add a link for an offer or an order document you should:

  1. Find the parameter for the document you want. For example: {Offer.OfferAttachmentUrl}
  2. Copy the Parameter.
  3. Add the word you want to be responsible for the redirection, i.e. Click Here
  4. Select the word/phrase and click on the “Insert Hyperlink” button.
  5. Replace the Web Address field with the parameter copied above.
  6. Add a ToolTip (word/phrase that will be displayed on the mouse over)
  7. Select if you want the link to open in a new window.

Add “Unsubscribe” functionality

To add an unsubscribe button from the OneDealer notifications in your emails you should:

  1. Find the relevant parameter by writing {UnsubscribeURLs. and then selecting one of the following:
    1. Manual: Just view your enabled communication channels and edit them manually
    2. All: Unsubscribe automatically from all channels and allow for further edit
    3. Email: Unsubscribe automatically only from Email channel and allow for further edit
    4. SMS: Unsubscribe automatically only from SMS channel and allow for further edit
  2. Copy the whole Parameter.
  3. Add the word you want to be responsible for the redirection, i.e. Unsubscribe Here
  4. Select the word/phrase and click on the “Insert Hyperlink” button.
  5. Replace the Web Address field with the parameter copied above.
  6. Add a ToolTip (word/phrase that will be displayed on the mouse over)
  7. Select if you want the link to open in a new window.

By adding these parameters in your email template, when the end User click on it, they will be redirected in an OneDealer page where depending on the parameter you selected above, they will be able to unsubscribe either manual from each channel or automatically.

Available parameter in the system

According to the type of the template you are working with, a different set of parameters will be available.

  • Master Template: Here you can find only generic parameter about the Company, the Sender, the Customer/Contact and of course the {Body} parameter which is responsible merging the Master template with each Email template.
  • Mail Template: As mentioned above (page 9), Mail Templates are split into types (Sales, Service, Purchase, Complaint and Mobility). According to the selected type, a different set of parameters will be available to you during the design process. For example, if sales type is selected, the parameters related with sales leads will be available.

Design a Template

The most common way to design a template (Master or Mail) is to cooperate with a designer, give him the design of the templates and they are responsible to create for you the html of each template. However, there are also few more ways:

  1. Get the HTML from a professional designer and add it in the template from the “View HTML” button.
  2. If the template is really simple, design it directly within the editor, using the given tools
  3. Prepare some elements in Word and copy/paste them.
  4. Use one of the many available free email designers in the internet. Export the HTML from this designer, when it’s ready, and add it in the editor using the “View HTML” button.

(warning) Important: To add photos and pictures within your templates you should not copy paste them from another file. Pictures should be uploaded into the directory of the email server and pulled within the template from the directory.

Notification Preparation

Notification Templates

In order for the email templates, made in the previous steps, to actually work and be able to be send during a business process, they have to be linked with each respective workflow and the specific transition.

  1. Open the OneDealer environment of your project and find the Email Notification List. There are two ways to do this:
    1. Open the respective Workflow you would like to work with and on the top right corner, click on the three horizontal lines button “Smart Notification” (next to the Actions). This is the same as the previews list (a.) but filtered out automatically to show only Smart templates.
    2. You can also access this list using this URL: /Workflow/SmartNotifications
  2. For Smart Notifications preferable use way (b.). Click on the plus + button, top right corner, to create a new notification for your previous made templates.
  3. A pop-up window will appear. Fill up the fields accordingly.
    1. Name: Add a description for your notification, i.e. OD – Thank you for your interest
    2. Master Template / Content Template: Select the correct selection of Master and Mail templates. (Make sure the same language templates are selected)
    3. Offset Type: Select what you will consider as starting point for your email to be planned and send
    4. Offset in Minutes: Add the offset time in minutes. Exmaples:
      1. If you select Offset Type = Now and add 60 in Offset in Minutes, the notification will be scheduled to be send 60 Minutes after the linked (related) activity
      2. If you select Offset Type = Now and add -60 in Offset in Minutes, the notification will be scheduled to be send 60 minutes before the linked (related) activity
    5. Enable the respective switch of what kind of notification this is, i.e. Email or Email and WhatsApp
    6. Select if it should always follow GDPR rules.
    7. Press the Save button to save your configuration.

Link Templates with Processes

Link Notification with Workflow (Sales, Purchase & Complain Case)

In order to add the configured notifications into the workflow transitions (steps) you want them to be triggered from.

  1. Open the Workflow in question
  2. Find the Transitions you want to add the already made notification template (or notification group). You can locate the transitions:
    1. Within the workflow designer (all the arrows that reach the activity result you want). I.e. Create Offer Activity – all the arrows (transitions) that have the Create Offer as result.
    2. Within the Transition tab by searching the transition name
  3. Once you find the transitions in question, click on edit
  4. Go the Notification Type Code field, search and add the notification in question from the available drop-down list.
    Remember: Notifications made using Smart Templates will get a “Smart -“ prefix in front of the name given by you.


  • No labels
Write a comment…