Email Template tokens - Take the last object of an association

Hi all, I am trying to create a token which is an attribute of a reference object to the selected one in my email template.  The problem that I have is that I would like that it selects the last object (in term of creation time) of the reference, which means :  My Entity A is linked to an entity B, and I would like that the B object selected is the last B object of the list (A is related to multiple B objects).  Is is possible to configure that in the email template ? I don’t see any constraint or filter...
1 answers

This is not possible out of the box in the email module. What you can do is to create a non-persistent entity, populate it with all the information needed for the email and use this in your template.

Its manual work but it is the simplest workaround in your scenario.