<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Display a user name into an email via an email template in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/display-a-user-name-into-an-email-via-an-email-template/m-p/313980#M981</link>
    <description>&lt;P&gt;Evening,&lt;/P&gt;
&lt;P&gt;I would like to send an email in which it's says something like:&lt;/P&gt;
&lt;P&gt;"Dear Sir,&lt;/P&gt;
&lt;P&gt;{user.name} {user.firstname} has provided a document for you on the platerform"&lt;/P&gt;
&lt;P&gt;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)&lt;/P&gt;
&lt;P&gt;${Document["dc:creator"].firstName}&lt;/P&gt;
&lt;P&gt;It's not working. Would you have any ideas on how to achieve this ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2017 17:23:52 GMT</pubDate>
    <dc:creator>Mathilde_Viveri</dc:creator>
    <dc:date>2017-05-11T17:23:52Z</dc:date>
    <item>
      <title>Display a user name into an email via an email template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/display-a-user-name-into-an-email-via-an-email-template/m-p/313980#M981</link>
      <description>&lt;P&gt;Evening,&lt;/P&gt;
&lt;P&gt;I would like to send an email in which it's says something like:&lt;/P&gt;
&lt;P&gt;"Dear Sir,&lt;/P&gt;
&lt;P&gt;{user.name} {user.firstname} has provided a document for you on the platerform"&lt;/P&gt;
&lt;P&gt;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)&lt;/P&gt;
&lt;P&gt;${Document["dc:creator"].firstName}&lt;/P&gt;
&lt;P&gt;It's not working. Would you have any ideas on how to achieve this ?&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2017 17:23:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/display-a-user-name-into-an-email-via-an-email-template/m-p/313980#M981</guid>
      <dc:creator>Mathilde_Viveri</dc:creator>
      <dc:date>2017-05-11T17:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: Display a user name into an email via an email template</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/display-a-user-name-into-an-email-via-an-email-template/m-p/313981#M982</link>
      <description>&lt;P&gt;Here is what to do (and what's working for me):&lt;/P&gt;
&lt;P&gt;${Fn.getPrincipal(Document['dc:creator']).firstName} ${Fn.getPrincipal(Document['dc:creator']).lastName}&lt;/P&gt;
&lt;P&gt;(as fields "user suggestion" store user's ID you need to get the user Object to retrieve its informations)&lt;/P&gt;</description>
      <pubDate>Tue, 16 May 2017 02:10:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/display-a-user-name-into-an-email-via-an-email-template/m-p/313981#M982</guid>
      <dc:creator>Mathilde_Viveri</dc:creator>
      <dc:date>2017-05-16T02:10:42Z</dc:date>
    </item>
  </channel>
</rss>

