Table in an Email

I have a requirement to show some records in a table as we are passing some batch data.

I know there was a ncolumntable function but looks like it is deprecated.

Can any one Help me with this?

 

  Discussion posts and replies are publicly visible

Parents
  • For the above requirement you will have to do following things  :

    1. Prepare a HTML template like this and store in your KC :

    <html>
    <head>
    <style>
    table, th, td {
    border: 1px solid black;
    }
    td{
    word-break:break-all
    }
    </style>
    </head>
    <body>
    <p>Hello,</p>
    <p>Please find data below.</p>
    <table cellpadding="5" rules="none" style='width:100%'>
    <tr bgcolor="#CCCCCC">
    <th align="center" >Col 1 with Link</th>
    <th align="center" >Col 2</th>
    <th align="center" >Col 3</th>
    </tr>
    ###Data###
    </table>
    </body>
    </html>

     

    2. Secondly you have to form data using HTML tags in your expression rule. Once formed you store in a PV.

    To give link to one column you can use urlforrecord.

    3. Go in Configure Send E-mail Setup

    You have to select Use a text or HTML template .

    Browse the template formed in step 1 and when scanned it will ask for Data, at that time map the formed data PV.

     

    I suppose all this will be helpful to you

Reply
  • For the above requirement you will have to do following things  :

    1. Prepare a HTML template like this and store in your KC :

    <html>
    <head>
    <style>
    table, th, td {
    border: 1px solid black;
    }
    td{
    word-break:break-all
    }
    </style>
    </head>
    <body>
    <p>Hello,</p>
    <p>Please find data below.</p>
    <table cellpadding="5" rules="none" style='width:100%'>
    <tr bgcolor="#CCCCCC">
    <th align="center" >Col 1 with Link</th>
    <th align="center" >Col 2</th>
    <th align="center" >Col 3</th>
    </tr>
    ###Data###
    </table>
    </body>
    </html>

     

    2. Secondly you have to form data using HTML tags in your expression rule. Once formed you store in a PV.

    To give link to one column you can use urlforrecord.

    3. Go in Configure Send E-mail Setup

    You have to select Use a text or HTML template .

    Browse the template formed in step 1 and when scanned it will ask for Data, at that time map the formed data PV.

     

    I suppose all this will be helpful to you

Children