Table in Email Body

Does Decisions support the use of tables in the body of an email?

Comments

  • Kathryn_Decisions
    edited June 20

    We don't have the ability to directly email a list of entities in a table structure in emails. You will need to dynamically build the HTML for the table and then use that on the Email step. I would recommend using the Custom Merge [NVelocity] step to build the table's HTML. Then pass the results into the body of your email.

    In the NVelocity step, you will need to provide the HTML template you want to be used. To include variables, select Use Brackets and include any variables as

    ${variable}
    
    <div>
        <table id="requestContents">
            <colgroup>
                <col style="width: 128px">
                <col style="width: 136px">
                <col style="width: 84px">
                <col style="width: 113px">
                <col style="width: 123px">
            </colgroup>
            <tr>
                <th>Column 1</th>
                <th>Column 2</th>
                <th>Column 3</th>
                <th>Column 4</th>
                <th>Column 5</th>
                <th>Column ${Number}</th>
            </tr>
        </table>
    </div>
    

    In the Send Email step, we will want to Merge HTML Text for the body of the email and pass in the output we got from the NVelocity step.

Sign In or Register to comment.