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 :
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?

I have the same question (0)
  • Arnaud De Jonghe Profile Picture
    135 on at

    We have exactly the same issue!

  • Newmayer2384 Profile Picture
    2 on at

    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

  • Newmayer2384 Profile Picture
    2 on at

    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? 

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    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

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 202 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans