web
You’re offline. This is a read only version of the page.
close
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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans