Skip to main content

Notifications

Announcements

No record found.

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

Session information in marketing email

(0) ShareShare
ReportReport
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,056 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,431 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans