AnsweredAssumed Answered

How do I loop through a list of documents and generate single message?

Question asked by RohithKodakandla5291 on Nov 22, 2014
Latest reply on Nov 24, 2014 by RohithKodakandla5291
Hi, I'm trying to look through DB Connector results and generate a HTML message in "Message" shape. Unfortunately, I'm unable to get all the results in one message. My message shape looks like this.

<table border="1" cellspacing="0" cellpadding="5px">
            <thead>
                <tr align="center" valign="middle">
                    <td valign="top">
                        <p style="font-size: 16px; color: #100bf3; line-height: 20px;">Plan Name</p>
                    </td>
                    <td valign="top">
                        <p style="font-size: 16px; color: #100bf3; line-height: 20px;">Metal Level</p>
                    </td>
                    <td valign="top">
                        <p style="font-size: 16px; color: #100bf3; line-height: 20px;"># Accepted Submissions</p>
                    </td>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>{1}</td>
                    <td>{2}</td>
                    <td>{3}</td>
                </tr>
            </tbody>
        </table>


Ideallly I was hoping for the table structure to appear only once and all the results would appear as separate rows in the message. But looks like entire table structure is getting repeated. 

Outcomes