Dynamically add Multiple Rows in A HTML Template

Hi All,

 

I have a use case where I need to send a mail using html template. can anyone provide me the syntax to Dynamically add Multiple Rows in A HTML Template.

  Discussion posts and replies are publicly visible

Parents
  • in the place of ###table### you can pass the following code

    "<table border=1 style='font-family:Calibri;'>
    <tr>
    <th style='border: 1px solid black;'>Header 1</th>
    <th style='border: 1px solid black;'>Header 2</th> ......
    <th style='border: 1px solid black;'>Header n</th>
    </tr>"&apply(rule!TableRowsEmail(_),ri!yourCDT)&"</table>"

    in the rule rule!TableRowsEmail(_) have the following code

    "<tr><td style='border: 1px solid black;'>" & ri!yourCDT.field1 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.field2 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.field3 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.fieldn & "</td><td>" & "</td></tr>"
Reply
  • in the place of ###table### you can pass the following code

    "<table border=1 style='font-family:Calibri;'>
    <tr>
    <th style='border: 1px solid black;'>Header 1</th>
    <th style='border: 1px solid black;'>Header 2</th> ......
    <th style='border: 1px solid black;'>Header n</th>
    </tr>"&apply(rule!TableRowsEmail(_),ri!yourCDT)&"</table>"

    in the rule rule!TableRowsEmail(_) have the following code

    "<tr><td style='border: 1px solid black;'>" & ri!yourCDT.field1 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.field2 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.field3 & "</td><td style='border: 1px solid black;'>" & ri!yourCDT.fieldn & "</td><td>" & "</td></tr>"
Children
No Data