Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

HTML Table in Workflow Email Body

(0) ShareShare
ReportReport
Posted on by

I have a workflow set up that emails accounts every Friday, and I want to format the email using HTML. Ideally, I would like to completely customize the emails with HTML, but my research online seems to show that with a WYSIWYG editor like the one in CRM Online, you can't do complex things. However, I did see a lot of posts about people being able to insert tables into their email body. How can I do that within a workflow that creates and sends an email? I tried it with the following code and it sent the code as if it were text:

<table style="border-collapse:collapse; text-align:center; width:100%; border-color:#FFFFFF">
<tr>
<td rowspan="2" style="border-color:#FFFFFF" align="center">Image</td>
<td rowspan="2" style="border-color:#FFFFFF" align="center">Image</td>
<td style="border-color:#FFFFFF"></td>
<td align="right" style="border-color:#FFFFFF">Image</td>
</tr>
<tr>
<td style="border-color:#FFFFFF">Visit Schedule:  {Visit Schedule(Facility)} xxxx</td>
<td align="right" style="border-color:#FFFFFF">Date: xxxx</td>
</tr>
<tr>
<td colspan="4" bgcolor="#000000"></td>
</tr>
<tr>
<td align="left" valign="center" style="border-color:#FFFFFF">Facility Name_xxxx<br>Address 1_xxxx<br>Gig Harbor, WA_xxxx</td>
<td style="border-color:#FFFFFF"></td>
<td style="border-color:#FFFFFF"></td>
<td align="right" style="border-color:#FFFFFF">Contact: xxxx<br>Phone: xxxx<br>Fax:  xxxx<br>Email: xxxx</td>
</tr>
<tr>
<td style="border-color:#FFFFFF"><br><br></td>
<td style="border-color:#FFFFFF"></td>
<td style="border-color:#FFFFFF"></td>
<td style="border-color:#FFFFFF"></td>
</tr>
</table>

<table style="border-collapse:collapse; text-align:center; width:100%; border-color:#FFFFFF">
	<tr>
  	<td style="border-color:#FFFFFF"></td>
    <td align="right" style="border-color:#FFFFFF">Phone: 111-111-1111&emsp;</td>
    <td align="left" style="border-color:#FFFFFF">Fax: 111-111-1111</td>
    <td style="border-color:#FFFFFF"></td>
  </tr>
</table>


Also, I pasted in some images from the web and they were not rendered correctly in the email when it came in. Any help would be appreciated! I'm using Dynamics 365 CRM Online.

*This post is locked for comments

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: HTML Table in Workflow Email Body

    Hi,

    if you have dynamics data to pass into the html table. The step would be same as above, write a html table script.

    If you have static table. Create the table in word document and copy and paste into email.

  • Bryant Boyer Profile Picture
    Bryant Boyer on at
    RE: HTML Table in Workflow Email Body

    This seems to work for adding an image to an email. What about adding other HTML content like tables?

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: HTML Table in Workflow Email Body

    Hi,

    I would suggest you to go for custom workflow. Below example is using Plugin, but the concept would be the same.

    parthimscrm.wordpress.com/.../display-images-in-email-body-crm-2011

  • Bryant Boyer Profile Picture
    Bryant Boyer on at
    RE: HTML Table in Workflow Email Body

    Here's how the email arrived:

    email_5F00_code.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans