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 :
Finance | Project Operations, Human Resources, ...
Unanswered

HTML email template styling breaks in Outlook when sent from Workflow (D365 F&O)

(0) ShareShare
ReportReport
Posted on by 18
Hi everyone,
 
I'm working with Dynamics 365 Finance & Operations and running into a layout issue with Workflow-based HTML email notifications.
 
**Environment:**
- D365 F&O (Cloud-hosted)
- Email provider: SMTP (Exchange Online)
- Email client: Outlook Desktop
 
**Background:**
I built an HTML email template using a table-based layout with fully inline styles (no external CSS, no JavaScript) — following the standard best practices for email HTML. The template renders correctly when previewed outside of D365. However, when sent through the Workflow engine, the final email in Outlook shows unexpected behavior.
 
**Observed Issues:**
- Large unexpected whitespace gaps between sections (appears to be caused by `<br>` tags injected automatically by D365 before sending)
- The layout does not occupy the full available width of the Outlook email body
- Certain inline styles (width, margin, padding, background-color) appear to be ignored or overridden
 
**Constraints:**
- The email is triggered by standard Workflow notifications — no custom X++ code is involved
- There is no opportunity to intercept or modify the HTML at runtime
- The template is stored and uploaded via System Email Templates
 
**Questions:**
1. Is the Workflow email framework known to inject or modify the HTML (e.g. adding `<br>` tags or wrapping the content) before sending?
2. Is there any supported way to prevent this automatic HTML modification?
3. Are there documented best practices for controlling layout when using Workflow HTML email templates in Outlook?
4. Is a full-width / edge-to-edge layout achievable within D365 Workflow emails, or is this a known limitation of the framework or Outlook itself?
I've already tried minifying the HTML (removing all whitespace between tags) and using `br { display:none }` as a workaround, which helped partially but didn't fully resolve the issue.
Any insight, confirmation, or shared experience would be greatly appreciated.
 
Thanks!
Categories:
I have the same question (0)
  • André Arnaud de Calavon Profile Picture
    303,950 Super User 2026 Season 1 on at
    Hi Raed,
     
    Can you share some details about your HTML body, please? What is the contents of your body? What texts are dynamically added or placeholders replaced with certain values from your workflow? Can you share an example how the email looks like now and how it is intended to be?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 692

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 454 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 311 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans