web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 98

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans