Email using html template

Hi,

I am trying to create multiple rows with html template to send email in table format.

Kindly help me with 2 things.

1. how to fetch the data and store in html template (is the only way using Pv!).

2.how to create  multiple rows in table format (email smart service)

Kindly help me with this.

  Discussion posts and replies are publicly visible

Parents
  • Your HTML template had to be uploaded in Appian.

    Then, you will need to have the dynamic data to be displayed in that HTML.

    For example:

    <html>

    <body>

    <h1>###yourVariableToDisplay###</h1>

    </body>

    </html>

    The template needs to be uploaded to your knowledge center. And then, from the Email Node, reference that template. The dynamic data variables will be shown and you can just assign data from PVs into it.

    In your use case, you can create the Dynamic HTML table and assign it to a PV via Script Task.

    1. Add a Script Task Node

    2. On Output Data, generate the HTML Table via expression rule.

    3. Assign or store into a process variable like "pvForDynamicTables" which is of type String.

    4. Use that PV in the Email Node.

    Hope this helps.

Reply
  • Your HTML template had to be uploaded in Appian.

    Then, you will need to have the dynamic data to be displayed in that HTML.

    For example:

    <html>

    <body>

    <h1>###yourVariableToDisplay###</h1>

    </body>

    </html>

    The template needs to be uploaded to your knowledge center. And then, from the Email Node, reference that template. The dynamic data variables will be shown and you can just assign data from PVs into it.

    In your use case, you can create the Dynamic HTML table and assign it to a PV via Script Task.

    1. Add a Script Task Node

    2. On Output Data, generate the HTML Table via expression rule.

    3. Assign or store into a process variable like "pvForDynamicTables" which is of type String.

    4. Use that PV in the Email Node.

    Hope this helps.

Children