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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Send Contacts Event Sessions they have registered to attend?

(0) ShareShare
ReportReport
Posted on by 51

We are trying to create a dynamic email that will use a for each to send the details for the individual sessions that a users has registered for. We have tried a bunch of variations of:

<!-- {{#each contact.msevtmgt_eventregistration_contact_msevtmgt_contactid}} -->
<tr>
<th scope="row"></th>
<td>{{this.msevtmgt_startTime}}</td>
<td><a href="">{{this.msevtmgt_name}}</a></td>
<td>abcde</td>
</tr>
<!-- {{/each}} -->
What are we doing wrong?
I have the same question (0)
  • Suggested answer
    ShravanSuri Profile Picture
    1,255 on at

    Hey Scott,

    Here's how for-each works - it will loop through related entities to a contact (of a particular relationship). Within each loop, you can add a "if" condition - to check whether that related entity matches some criteria - and then perform actions based on that.

    Let's look at an example.

    You have an event with 3 sessions (that you want to display in chronological order, so this tip is especially valuable to you).

    Session 1 - 10 AM
    Session 2 - 11 AM
    Session 3 - 1 PM.

    What you need to do is create an email for that particular event (which you're doing anyway) - and create a table/list of ALL sessions. Then, wrap each list item in a for-each loop (and if condition) to check if the person receiving that email registered for that session at all. (Yes, this is a bit time consuming and we're making it easier in the future - but this workaround should get you unblocked for now).

    So this means your email would look like: (event ID for your event is 123)

    <For all session registrations of this contact> <if eventID of this session reg == '123' and sessionID == 'sessionID of session 1'>

    Session 1 - 10 AM

    </if></for>

    <For all session registrations of this contact> <if eventID of this session reg == '123' and sessionID == 'sessionID of session 2'>

    Session 2 - 11 AM

    </if></for>

    <For all session registrations of this contact> <if eventID of this session reg == '123' and sessionID == 'sessionID of session 3'>

    Session 3 - 1 PM

    </if></for>

    This way, for each row of the list, the system will check if the person registered for that particular session - and only then display the row. 

    Please reply here if you'd like help with the code here. Please note that a frequent request of event communication is not just to display the list of sessions, but to display them in a particular order/format. This method should let you tightly control such a display.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Manoj - ManoVerse Profile Picture

Manoj - ManoVerse 131 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 88

#3
Chris1968 Profile Picture

Chris1968 20

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans