Forum

Email templates fie...
 
Notifications
Clear all

Email templates fields

12 Posts
2 Users
0 Reactions
6,715 Views
(@ldumas)
Posts: 30
Active Member
Topic starter
 
[#5415]

Hi,

I'm trying to "play" with email templates and i'm quite stuck on one thing, i'm trying to put the "creationDateTime" of a ticket in a mail but can't work...?

So i opened the F1 help and i can see that : in the template, user can use any property of the updated object to show in the mail, just use ${propertyName} for instance ${name} will display the name of the item, ${id} will display its id

so i tested to put ${creationDateTime} into my template but ... 🙁

Any idea ?


 
Posted : 12 Sep 2018 13H48
(@babynus)
Posts: 14952
Member Admin
 

Hi,

so i tested to put ${creationDateTime} into my template but ... 🙁

But what ?
What is result ?
${creationDateTime} still displayed or replaced with blank ?

I've just tested, and it works fine...

My template :

My email trigger :

The email received :


 
Posted : 13 Sep 2018 11H30
(@ldumas)
Posts: 30
Active Member
Topic starter
 

Here is what i get :


 
Posted : 13 Sep 2018 11H37
(@babynus)
Posts: 14952
Member Admin
 

check that there is no "hidden" html code in the field.
You can switch editor to html format or simply : cut text, copy is simple text editor (notepad), copy from text editor, paste on template.


 
Posted : 13 Sep 2018 11H53
(@ldumas)
Posts: 30
Active Member
Topic starter
 

I have something called "class=scayt-misspell-word", what is that ?


 
Posted : 13 Sep 2018 11H55
(@babynus)
Posts: 14952
Member Admin
 

It is interaction of the spell checker...
Remove extra html.
You must have ${creationDateTime} in one single work in the html code


 
Posted : 13 Sep 2018 11H59
(@ldumas)
Posts: 30
Active Member
Topic starter
 

All right, thanks


 
Posted : 13 Sep 2018 11H59
(@ldumas)
Posts: 30
Active Member
Topic starter
 

Hm, one more question :

Can i display the name of the responsible of a project when i use "Ticket" event ?

A ticket depend of a Project, and i want to display the name of the project's responsible.


 
Posted : 13 Sep 2018 12H26
(@babynus)
Posts: 14952
Member Admin
 

No, only information of the current item is available.


 
Posted : 13 Sep 2018 12H34
(@ldumas)
Posts: 30
Active Member
Topic starter
 

Ok, can you explain this note (in you F1 help) please ? looks like i don't understand well :

for properties referencing external item, such as idXxxxx, use ${nameXxxxx} to display name of item instead of its id for instance ${nameProject} will display the name of the project, as ${idProject} will display the id of the project


 
Posted : 13 Sep 2018 12H40
(@babynus)
Posts: 14952
Member Admin
 

This meams that when you have a reference to an object, referencing another object, like idXxxx
> for instance idProject in Ticket
you can display the name of the references object instead of its id
> for instance name of the project
by using field ${nameXxxx} instead of ${idXxxx}
> for instance ${nameProject} to display the name of the project, ${idProject} would display the id of the project


 
Posted : 13 Sep 2018 13H04
(@ldumas)
Posts: 30
Active Member
Topic starter
 

Ok thanks for your help.


 
Posted : 13 Sep 2018 14H16
Share:

Scroll to Top