Use users Full Name in E-Mail body

Issue #306 resolved
Patrick Schuh [brainbits] created an issue

Hi Fidel,

I want to use the Users Full Name within the body of an email send by the new send email function. But I'm not sure about the syntax.

I used something like this within a HTML-formatted mail:

<font face="arial" size="2">
<strong>Contributors:</strong><br />
Programmer: %{10701} <br />
Expert: %{10702} </font>

I found the hint about getting the user name by this function:

userFullName(string user)

But how to integrate this?

Thank you Patrick

Comments (2)

  1. Fidel Castro Armario repo owner

    Hi Patrick,

    I assume that you are you using "Send an email" post-function. Currently you can't use userFullName(string user) in the summary or body of the email, but you can use the following trick:

    1. Use "Copy a parsed text to a field" post-function previously for storing the user full names into "Ephemeral string 1" and "Ephemeral string 2" virtual fields. You should use the following configurations:
    • Target field: Ephemeral string 1
    • Parsing mode: advanced
    • Text to be parsed: userFullName(%{10701})

    and

    • Target field: Ephemeral string 2
    • Parsing mode: advanced
    • Text to be parsed: userFullName(%{10702})

    Now you can use field codes for Ephemeral string 1 (%{00061}) and Ephemeral string 2 (%{00062}):

    <font face="arial" size="2">
    <strong>Contributors:</strong><br />
    Programmer: %{00061} <br />
    Expert: %{00062} </font>
    
  2. Log in to comment