Notifications
Announcements
No record found.
I am trying to follow the documentation here:https://docs.microsoft.com/en-us/dynamics365/marketing/custom-template-attributes#add-property-reference-attributes-to-implement-style-settings-in-the-body
I added this code to the head of my email:
Same problem here. Driving me nuts haha.
The weird thing is that at one point it looked like it did work?
Hi
As per documentation, the property-reference functionality is for adding element attributes, not CSS styles. It can be used for controlling image src attribute, align, width, height, etc.Invalid attributes that do not belong to an element as per HTML specification are automatically removed. "color" attribute is invalid for "p" element, so it is removed. Same for background-color.
Dynamic styling using custom properties can be achieved by using specific comments referencing custom property values, as described here: Use custom attributes to enable designer features in templates (Dynamics 365 Marketing) | Microsoft DocsBest Regards,PM, D365 Marketing
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Tom_Gioielli 81 Super User 2025 Season 2
Gerardo RenterÃa Ga... 49 Most Valuable Professional
#ManoVerse 40