web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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

I have the same question (0)
  • Bryant Boyer Profile Picture
    on at

    Here's how the email arrived:

    email_5F00_code.PNG

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    33,628 on at

    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
    on at

    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
    33,628 on at

    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.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans