Skip to main content

Notifications

Announcements

No record found.

Customer Insights - Journeys forum

Marketing Email list coming events

Posted on by

I am studying the Dynamics 365 Marketing Email function. What I'm going to do is to find a way to list coming events within a period in emails.

The event data are stored in the entity Event, and I need the email can automatically fetch a few events' detail based on their event dates and display them in email routinely by setting up a custom email template.

I knew that dynamic fields can be used to display dynamic data. However, by using the 'Assist edit' function provided, I can only select 1 static record from entity Event (but I need to take some/all records from Event).

I also tried setting up relations between entities, so that I can retrieve all events by connecting them to a dummy contact(static record) , but the custom relationship I set is not searchable in the 'Assist edit' (maybe I have set incorrectly? The custom 1:N Relationship has set to searchable however)

Do anybody has ideas? Thanks in advance!

  • Yen Russell Profile Picture
    Yen Russell on at
    RE: Marketing Email list coming events

    In addition to what Clofly Mao has said, to help identify the correct relationship name, you can try and create the relationship between the Contact and Event in the Segment's Designer tab. When finished, you can find the relationship name in the Query tab - this is the relationship name you'll need to use in the for loop.

    Beware of the two-hops limit in field expressions - this goes for lookups too, if your lookup is in your second linked entity then you would only be able to get the lookup GUID as getting the lookup name is considered a 3rd hop.

  • Suggested answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Marketing Email list coming events

    Hi Serina,

        You can display events of your contact with for-each loop in email content.

        https://docs.microsoft.com/en-us/dynamics365/customer-engagement/marketing/dynamic-email-content#for-each-loops

        example syntax with HTML elements:

    <p>You registration events:</p>
    
    <ul>
    
        {{#each contact.contact_event_eventid}}
    
        <li>{{this.eventname}}</li>
    
        {{/each}}
    
    </ul>  

       please drag Custom code to any part of your email, and edit code in Properties > Custom code

       ms.png

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... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans