Hi,
could someone help me out with a dynamic content expression regarding the event name of the contact? I know it is a 1:N relationship thus we need a {{#each}} loop however I am not able to put this right since I dont know which fields to put in the expression.
Thanks!
Hi Elisa,
I am not sure which question you are referring to :)
Date fields are not supported, so you would need to create a new field (whole number or text) to be able to use it in the email.
Regarding double loop - Also not supported. We created a new relationship between the contact and the target entity, allowing us to get to the necessary information using one loop.
Cheers,
Jana
please I have the same question, could you help us
Hi Alex,
Thanks for your input! I was rather hoping to find the solution to double {{#each}} loop, but this is not supported. I was also not able to resolve my issue using real-time marketing, but I found a workaround, so we managed to fix the main issue.
Speaking of #if conditioning, do you know if can Date fields be used as well?
For example using if conditioning on event start date msevtmgt_eventstartdate
Thanks,
Jana
Hi Jana, this is possible, you can use IF statements within an EACH loop to filter out records. You would need to reference and hard code the GUID of the Event. Sorry not at my machine currently to provide an example but let me know if you need one.
Recently I’ve been looking more at sending event registration emails from real-time marketing as can trigger on the event registration being created and pass in tokens for the registration, event and contact without needing code in the templates. Unfortunately emails sent from real-time don’t yet show against the contact but this will be resolved in June according to the most recent release wave announcements.
Hi Nya,
is there any way to filter the #each loop? I have a contact who registered for 2 events: EVENT A and EVENT B.
I want to send a confirmation email and include the registration ID for Event A, yet exclude Event B.
What I tried to do is create a segment
"Registrations for Event A", hoping that this would do the trick. Unfortunately this did not work (please see details below)
Is there anything else that can be applied to use #each loop yet filter the criteria?
<ul style="color: #3575d3">
{{#each
contact.msevtmgt_eventregistration_contact_msevtmgt_contactid}}
<li>{{this.msevtmgt_name}}</li>
{{/each}}
</ul>
Hi,
First of all, if you’d like to show event name in a marketing email, it is necessary to make sure that the contact is created by event registration of the event. In the Details tab from the form of these contacts, a field called Originating event which specifies a 1: N relationship between Event and Contact. Only Contact generated in Event Registration will automatically populate this field.
It means that you cannot show a list of events the contact registered. Only the Originating event can be shown with a dynamic content in the email.
The {{#each}} loop can only be used in the entities have a N: 1 relationship with Contact.
For more fields in Event entity shown in marketing email, you can refer to my answer in the following issue:
If this helped you, I'd appreciate it if you'd mark this as a Verified Answer, which may in turn help others as well.
Best Regards,
Nya
André Arnaud de Cal...
291,969
Super User 2025 Season 1
Martin Dráb
230,842
Most Valuable Professional
nmaenpaa
101,156