Monday, August 5, 2013

sharepoint designer email html format

Here is the some peculiar scenario i will explain about sharePoint designer.

When we create a sharepoint designer workflow with send email functionality. Email body format will not behave as expected most of the times.

Alignments will not work even though you set it to align 'top' bottom'

This is the wired behavior.

Solution :
The solution for that is very simple and interesting. You need to put your html code in a single line. i.e

<table border="1">
<td>row 1, cell 1</td>
<td>row 1, cell 2</td>
<td>row 2, cell 1</td>
<td>row 2, cell 2</td>

This will cause alignment issue.

<table border="1"><tr><td>row 1, cell 1</td><td>row 1, cell 2</td></tr><tr>td>row 2, cell 1</td><td>row 2, cell 2</td></tr></table>

Aboue code will fix this alignment issue in Designer email format. Everything should be in one line.

Thank you !!!

No comments:

Post a Comment