AnsweredAssumed Answered

Task Notification HTML not showing

Question asked by jekcalingan on Sep 19, 2018

I am trying to create an HTML to send as an email as a task. The HTML template email works but when the values with braces [ ] are replaced with Workflow Variable, Workflow Context or Item Properties the email sent does not have any content.

<table cellspacing="0" cellpadding="0" border="0" width="700" style="background-color: #ffffff; border: 2px solid #f6f6f6; border-collapse:collapse; font-family: helvetica; font-size: 15px; mso-table-lspace: 0pt; mso-table-rspace: 0pt;">
     <thead>
          <tr>
               <td colspan="2">
                    <img src="[CurrentsiteURL]/Form%20Images/eforms_768px-blackgold_header1_approvalmemo.jpg" alt="APPROVAL MEMO FORM" />
               </td>
          </tr>
     </thead>
     <tbody>
          <tr>
               <td colspan="2" style="color: #d7b223; padding: 10px 20px 0;"><h3>REQUEST DETAILS</h3></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 10px 20px 0; width: 30%;">Requestor Name</td>
               <td style="padding: 10px 20px 0; width: 70%;"><strong>[RequestorName]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Department</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[Department]</strong></td>
          </tr>
          <tr>
               <td colspan="2" style="padding: 30px 20px 0;"><hr color="#efefef" width="100%"></hr></td>
          </tr>
          <tr>
               <td colspan="2" style="color: #d7b223; padding: 10px 20px 0;"><h3>DOCUMENT DETAILS</h3></td>
          </tr>
          <tr>
               <td style="width: 30%; color: #929292; padding: 10px 20px 0;">Expense Type</td>
               <td style="width: 70%; padding: 10px 20px 0;"><strong>[ExpenseType]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Memorandum Subject</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[MemorandumSubject]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Executive Summary</td>
               <td style="padding: 30px 20px 0; width: 70%;">[ExecutiveSummary]</td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Currency</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[Currency]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Total Project Cost</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[Total Project Cost]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">View Attachment</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[Attachments]</strong></td>
          </tr>
          <tr>
               <td colspan="2" style="padding: 30px 20px 0;"><hr color="#efefef" width="100%"></hr></td>
          </tr>
          <tr>
               <td colspan="2" style="color: #d7b223; padding: 10px 20px 0;"><h3>APPROVER DETAILS</h3></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 10px 20px 0; width: 30%;">Approver Limit</td>
               <td style="padding: 10px 20px 0; width: 70%;"><strong>[Approver Limit]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px 0; width: 30%;">Approver Name</td>
               <td style="padding: 30px 20px 0; width: 70%;"><strong>[ApproverName]</strong></td>
          </tr>
          <tr>
               <td style="color: #929292; padding: 30px 20px; width: 30%;">Reviewer Name</td>
               <td style="padding: 30px 20px; width: 70%;"><strong>[ReviewerName]</strong></td>
          </tr>
     </tbody>
</table>

 

UPDATE (Sept 21, 2018): I have fix the HTML TABLE which now shows properly on email notification and task notification. However, when I enable LazyApproval on a Start a Task Process, the style attribute on my table and td are being stripped-off.

Outcomes