Skip to main content

Notifications

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

Session information in marketing email

Posted on by 34

Hi all,

A few weeks ago I created an email template to confirm session registrations.
This worked fine (and is still working), but if I want to adjust the template I suddenly get errors upon validation.

Even when I just edit the existing (live) template, don't adjust anything but directly save I get validation errors.
No idea how this suddenly happened.

In my code I try to retreive the values of 3 fields on the Session Registration entity.

  <!-- {{#each contact.msevtmgt_sessionregistration_contact_msevtmgt_contactid }} -->
<!-- {{#if (eq this.msevtmgt_event 'dbf6859e-1337-4719-a265-a7941b9d385c')}} -->
<li>Event: {{this.new_naam}}</li>
<li>Locatie: {{this.new_locatie}}</li>
<li>Start: {{this.new_begintijd}}</li>
<li>Einde: {{this.new_eindtijd}}</li>
<!-- {{/if}} -->
<!-- {{/each}} -->

The template is still working and showing the requested data weird enough.

Error for all 3 fields (with respect. field names): HTML: Dynamic content includes a for-each loop that contains the following expression, which must refer to a property of the looped entity:

  • Verified answer
    Nya Profile Picture
    Nya 29,054 on at
    RE: Session information in marketing email

    Hi,

    Do you mean the four fields "new_naam", "new_locatie", "new_begintijd" and "new_eindtijd" are all custom field in Session Registration entity?

    If yes, you could try to adjust the code into the following way:

    {{#each contact.msevtmgt_sessionregistration_contact_msevtmgt_contactid }}
    {{#if (eq this.msevtmgt_event 'dbf6859e-1337-4719-a265-a7941b9d385c')}}
    
  • Event: {{this.new_naam}}
  • Locatie: {{this.new_locatie}}
  • Start: {{this.new_begintijd}}
  • Einde: {{this.new_eindtijd}}
  • {{/if}} {{/each}}

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans