Skip to main content
Post a question

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id : zcnEdWdg1XPgSCsd43gTyD
Customer experience | Sales, Customer Insights,...
Suggested answer

Syntax Error - personalization E-Mail Designer Code-Element

Like (1) ShareShare
ReportReport
Posted on 17 Mar 2022 14:04:21 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
    29,058 on 21 Mar 2022 at 01:40:12
    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
    2 on 18 Mar 2022 at 15:52:00
    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
    2 on 18 Mar 2022 at 15:38:58
    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
    135 on 18 Mar 2022 at 15:33:25
    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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,850 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,723 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans
Loading complete