Subject:
Email content with a table
Content / Title / Alt Text
Link of Image or Button Destination
Footer Text:
Note
The “Code” column in the table uses a SwitchIf() formula so added custom items can be substituted in and still have their code read and ordered with the rest of the email content. I use canvas formulas in these examples to create the code, then pull those into the SwitchIf(). Add as many of these as you need if you want to add multiple custom items.
Table Layout
Label List
Formula
Note: This must be a list, not just comma separated text.
DateDayTime InTime OutShift Type
Data Rows
Formula
Note: The .Join("|") is required for the pack to be able to separate the column values for each row.
3/22/2021|MON|8:00 AM|5:00 PM|Office3/24/2021|WED|8:00 AM|5:00 PM|Office3/25/2021|THU|8:00 AM|5:00 PM|Office
Table helper code
Formula
<tr> <td align="left" style="padding:0;Margin:0;padding-left:30px;padding-right:30px"> <table width="100%" cellspacing="0" cellpadding="0" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px"> <tr> <td valign="top" align="center" style="padding-top:15px;padding-bottom:15px;Margin:0;width:530px;"> <table width="100%" style="mso-table-lspace:0pt;mso-table-rspace:0pt;border-collapse:collapse;border-spacing:0px;font-size:14px;font-family:helvetica, 'helvetica neue', arial, verdana, sans-serif;background-color:#EEEEEE;border-radius:7px 7px 0px 0px;" cellpadding="6" role="presentation"> <tr> <th> Date </th> <th> Day </th> <th> Time In </th> <th> Time Out </th> <th> Shift Type </th> </tr> <tr style="border-collapse:collapse;border-bottom:1px solid #DDDDDD;background:#FFFFFF;"> <td style="padding:6px;Margin:0;"> 3/22/2021 </td> <td style="padding:6px;Margin:0;"> MON </td> <td style="padding:6px;Margin:0;"> 8:00 AM </td> <td style="padding:6px;Margin:0;"> 5:00 PM </td> <td style="padding:6px;Margin:0;"> Office </td> </tr> <tr style="border-collapse:collapse;border-bottom:1px solid #DDDDDD;background:#FFFFFF;"> <td style="padding:6px;Margin:0;"> 3/24/2021 </td> <td style="padding:6px;Margin:0;"> WED </td> <td style="padding:6px;Margin:0;"> 8:00 AM </td> <td style="padding:6px;Margin:0;"> 5:00 PM </td> <td style="padding:6px;Margin:0;"> Office </td> </tr> <tr style="border-collapse:collapse;border-bottom:1px solid #DDDDDD;background:#FFFFFF;"> <td style="padding:6px;Margin:0;"> 3/25/2021 </td> <td style="padding:6px;Margin:0;"> THU </td> <td style="padding:6px;Margin:0;"> 8:00 AM </td> <td style="padding:6px;Margin:0;"> 5:00 PM </td> <td style="padding:6px;Margin:0;"> Office </td> </tr> </table> </td> </tr> </table> </td> </tr>
Generated Email Code