Display a user name into an email via an email template

Evening,

I would like to send an email in which it's says something like:

“Dear Sir,

{user.name} {user.firstname} has provided a document for you on the platerform”

The user is a property of said document, so here is what I tried (for example with the field dc:creator containing the creator of the document)

${Document[“dc:creator”].firstName}

It's not working. Would you have any ideas on how to achieve this ?

thanks

0 votes

1 answers

1546 views

ANSWER



Here is what to do (and what's working for me):

${Fn.getPrincipal(Document['dc:creator']).firstName} ${Fn.getPrincipal(Document['dc:creator']).lastName}

(as fields “user suggestion” store user's ID you need to get the user Object to retrieve its informations)

0 votes