title: Formatting a sharepoint workflow email table using HTML Tags
body: <p>I'm setting up a workflow email that takes values from a sharepoint form and then formats that email for users. </p>
  
  <p>I've gotten everything working correctly, except for one part. When the email is sent out, the field that is being looked up doesn't get word-wrapped which then causes my emails(including the table) to expand straight across the screen. </p>
  
  <p>Here's a snippet of the code. (Sharepoint 2013 Designer needs to have everything as one long string, which makes it a pain to edit. Probably run it through an online HTML editor to see what is going on)</p>
  
  <pre><code>&lt;TABLE style="WIDTH: 316pt; BORDER-COLLAPSE: collapse; COLGROUP: " width=165 124pt? WIDTH:&gt;
  &lt;COLGROUP&gt;
      &lt;COL style="WIDTH: 192pt" width=256&gt;
  &lt;TBODY&gt;
      &lt;TR style="HEIGHT: 14.25pt" height=19&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; HEIGHT: 14.25pt; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 124pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" height=19 width=165&gt; &lt;FONT size=2&gt;Service ID&lt;/FONT&gt; &lt;/TD&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 192pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=256&gt;&lt;FONT size=2&gt;[%Current Item:Service ID%]&lt;/FONT&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR style="HEIGHT: 14.25pt" height=19&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; HEIGHT: 14.25pt; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 124pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" height=19 width=165&gt;&lt;FONT size=2&gt;Order ID&lt;/FONT&gt;&lt;/TD&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 192pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=256&gt;&lt;FONT size=2&gt;[%Current Item:Order ID%]&lt;/FONT&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR style="HEIGHT: 14.25pt" height=19&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; HEIGHT: 14.25pt; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 124pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" height=19 width=165&gt;&lt;FONT size=2&gt;Account ID&lt;/FONT&gt;&lt;/TD&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 192pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=256&gt;&lt;FONT size=2&gt;[%Current Item:Account ID%]&lt;/FONT&gt;&lt;/TD&gt;
      &lt;/TR&gt;
      &lt;TR style="HEIGHT: 14.25pt" height=19&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; HEIGHT: 14.25pt; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 124pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" height=19 width=165&gt;&lt;FONT size=2&gt;Change Type&lt;/FONT&gt;&lt;/TD&gt;
          &lt;TD class=xl63 style="WORD-WRAP: break-word; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid; WIDTH: 192pt; BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=256&gt;&lt;FONT size=2&gt;[%Current Item:Change Type%]&lt;/FONT&gt;&lt;/TD&gt;
      &lt;/TR&gt;&lt;/Table&gt;
  </code></pre>
  
  <p>I used style="WORD-WRAP: break-word;" which works in sharepoint designer for pre-filled data but it doesn't work for the lookup values. I've looked around but i'm stumped. </p>
  
  <p>Can anyone help me with this? </p>