Skip to main content

Notifications

Announcements

No record found.

Customer experience | Sales, Customer Insights,...
Answered

Unable to use toolbox elements due to missing format meta data entries

Posted on by Microsoft Employee

Hello,

I`ve created a Marketing E-Mail template from a copied HTML Code.

Now I want to use the toolbox elements for editing the layout but I`m unable to format the content due to missing format metadata entries.

Does anyone know how to solve this?

Thanks and regards

Alexander

pastedimage1597393459329v1.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unable to use toolbox elements due to missing format meta data entries

    Hi Clofly,

    thank you very much for your detailled documentation :-)

    I`ll test this.

    Regards

    Alexander

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Unable to use toolbox elements due to missing format meta data entries

    Hi Alexander.

    Is the error "The HTML doesn't contain any style meta entries"?

    If so, we need to add Dynamics Marketing Email template attributes to html source code of our custom template to enable OOB designer.

    Please refer to following process, it will set the circled text to text element.(and make properties to be available.)

    7268.JPG

    See source code of demo template:

    https://codepen.io/tutsplus/pen/aboBgLX

    1. Create a blank template or marketing email, because necessary meta attributes are available by default to marketing email which is created in system.

    Copy following meta attributes to source code of custom template. (Below title tag.)

    
    
    
    
    
    
    

    <meta type="xrm/designer/setting" name="type" value="marketing-designer-content-editor-document"> is the key meta attribute to show the toolbox and enable drag-and-drop editing.

    <meta type="xrm/designer/setting" name="layout-editable" value="marketing-designer-layout-editable" /> and <meta name="html-editor"> might also be important, but they are not mentioned in documentation.

    2. Copy following css rules to custom template.

    body {
        font-family: /* @font-family */ Verdana, /* @font-family */ Arial, /* @font-family */ sans-serif /* @font-family */;
        font-size: /* @body-text-size */ 14px /* @body-text-size */;
        color: /* @body-text-color */ #000 /* @body-text-color */;
        background-color: /* @email-background */ #fff /* @email-background */;
    }
    
    [data-layout="true"] {
        margin: 0 auto;
        max-width: /* @layout-max-width */ 600px /* @layout-max-width */;
    }

    body css is the key to enable properties, as we can see from automatically generated rules by system, it use annotations to control overall properties of a email.

    Now properties will be available to email, we can control background color of email.

    pastedimage1597397296740v1.png

    (Important: please check whether there are already defined body css to your own custom email template, if yes, remove the default, because from my test, they might prevent designer to change styles.)

    3. Convert text to text element.

    The text might be saved in td tag, we could nest it with <div data-editorblocktype="Text"><p></p></div>

    4062.JPG

    Then the text will be converted to text element.

    pastedimage1597397954165v2.png

    We can also add new text element to its top or bottom when clicking text button.

    pastedimage1597397995374v3.png

    In a word, you could take documentation tutorial as reference:

    https://docs.microsoft.com/en-us/dynamics365/marketing/custom-template-attributes

    and create a blank email template for comparison.

    It might takes some time to learn those concepts.

    Regards,

    Clofly

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans