In this article, we describe several basic notions to keep in mind whenever you are going to generate a notification template from the advanced configuration. You can use these templates together with automation tasks such as "Send document and metadata by email".
You can add custom notification templates from the advanced admin in:
Use the option "+" to create a new notification template. You will have to indicate some basic information:
Using dynamic content in the subject or body
Whenever in the Subject or in the Body, or in both at the same time, you are going to use variables that are going to be substituted when generating the notification, you must use {% load filetags %} at the beginning of each block.
{% load filetags %}
- All tags used are always enclosed in braces.
- Some common tags:
{{fil.filename}} -> Document title
{{fil.uuid}} -> UUID of the document
{{fil|gmv:"metadata.field1"}} ->
This tag prints the value of a field. Replace "field1" with the API name of your field.
{{fil.id|gmv_printable:"metadata.field2"}} ->
Use this instead of the previous one if you want to print fields of type:
dictionaries, documents, user... where the internal value can be different
from the one displayed.
{{series.team.get_absolute_logo_url}} ->
Prints the logo of your team.
{{fil.id|gmvp_currency: "metadata.field2"}} -> To print a field of type currency
{{fil.doctype.label}} -> Form of the document
{{fil.author}} -> Creator of the document
{{user_to.first_name}} -> Prints the receiver first name.
{{current_user}} -> Username of the user who executes the notification.
It is not always available.
Including a link to the document within the body of the email
You can link to the document the user needs to work with in the following way:
<a href="https://mycompany.athento.com/file/view/{{fil.uuid}}">{{fil.filename}}</a>
Just replace "mycompany" with your Athento's domain.
Comments
0 comments
Please sign in to leave a comment.