Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In this section we will show you how to customize your email notifications. We will work with the example of Job notifications, but any other template could be updated with your custom texts:

...

  1. First click on the View/Edit
  2. Now on the following page you will be able to view and edit your email body and titles content by clicking on the "Edit" link located on the top right of your page.

  3. In the "edit" mode of your email notification you will be able to modify the email and the titles content as a normal text based (design) mode or you can also edit the content by clicking the on the html tab as shown below. Edit your template below and click 'Save' once finished.
    Make sure to preview the template for final validation. For advanced editing switch to HTML mode. Insert placeholders, such as {{SupplierName}}, for project, job or supplier related information. 




  4. Help with placeholders: To help you with the email template placeholders you can click the "Help with placeholders" link which located above the email customization box. Email templates contain "placeholders" that will be replaced with real data from the supplier, the job or the project. 

Conditional rules and how to use them

...

Customize Email notifications (How to define multilingual templates)

Using conditional statements in the templates will make it possible to include specific information in the email notifications or even select the right language to communicate with your clients and supplier users. See some examples below:

  • IF - ELSE - ENDIF:
    {% if JobStatusCode == 'InProgress' or JobStatusCode == 'Completed' %} In progress! {% else %}Not in progress! {% endif %}

  • CASE - WHEN - WHEN - ELSE - ENDCASE:
    {% case JobStatusCode %} {% when 'InProgress' %} In progress! {% when 'Cancelled' %}Cancelled! {% else %}Other status! {% endcase %}


We will take an example where we gonna structure emails to be send depending on languages. It means you can customize your email notifications with conditional structures.Multilingual example
The example below illustrates how to use conditional statements in the Client Portal events to communicate in the languages configured for the recipient Company.

  1. Setup of destination language to "DE" language. In this case, we tell the system to send a notification when the target language is "Dede"
Info

The destination language is defined by the client language setup. This can be configured in the client configuration section.

  • DE example:

    {% case DestinationLanguage %} → In case the destination language is set to.......
    {% when 'de' %} →  Language setup to "de"
    {% if DestinationAny %} → All notification
    Guten Tag 
    {{DestinationFirstNameOrFullNameOrCompany}} →  Placeholders


  • FR example:

    {% case DestinationLanguage %} → In case the destination language is set to.......
    {% when 'fr' %} →  Language setup to "fr"
    {% if DestinationAny %} → All notification
    Bonjour
    {{DestinationFirstNameOrFullNameOrCompany}} →  Placeholders

...

Preview results and reset template

Info

Please make sure you save your changes before clicking on the "Preview with sample data" link.

You can directly view your customization results by clicking on the "Preview with Sample data" link.

...