Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

Syntax Error - personalization E-Mail Designer Code-Element

(1) ShareShare
ReportReport
Posted on by 245

Hello People of Dynamics,

I am suffering a bad Error which totally brings me to my mental Limits

pastedimage1647525743984v1.png

THIS DOESNT WORK: 

{{#if (eq contact.salutation '')}} Ladies and Gentlemens,{{else}} {{contact.salutation}}, {{/if}}

THIS WORKS:

{{#if (eq contact.salutation '')}} Greetings,

{{else}} {{contact.salutation}},

{{/if}}

I Don't get it....What do I need to fix to deal with it.

Can someone help please?

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: Syntax Error - personalization E-Mail Designer Code-Element

    Hi,

    I copied both of the two code snippets into my email but neither of them caused an error.

    pastedimage1647826711984v1.png

    pastedimage1647826737451v2.png

    Here is the version I'm using. Is it the same as yours?

    pastedimage1647826785978v3.png

  • Newmayer2384 Profile Picture
    Newmayer2384 2 on at
    RE: Syntax Error - personalization E-Mail Designer Code-Element

    Did you fill out the pre-header field below the Subject field? I know there is currently a bug That if the pre-Header is empty a DIV Element wont be closed causing an error.

    in regards to your scenario it Looks like due to the Spaces between Ladies and Gentlemen there are HTML space Tags created. Could you Paste your HTML in here? 

  • Newmayer2384 Profile Picture
    Newmayer2384 2 on at
    RE: Syntax Error - personalization E-Mail Designer Code-Element

    Try to Full out the pre-Header Field, there is a bug That if the pre-header is empty a DIV - Element wont get closed in the HTML source code

  • Arnaud De Jonghe Profile Picture
    Arnaud De Jonghe 135 on at
    RE: Syntax Error - personalization E-Mail Designer Code-Element

    We have exactly the same issue!

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,979 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,848 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans