
I am attempting to use personalised content within our email templates, the personalised content needs to pull through information from a contacts booking information. However, due to contacts having multiple bookings, I receive this message. The emails are triggered dates and changed associated with the booking, not contact information or changes.
Hi,
As there is an N:1 relationship between the booking entity and contact entity, it is not possible to determine which record to display by using dynamic content alone.
As mentioned in the prompt in your screenshot, you need to use the #each statement to list all the booking records belonging to a contact.
Please refer to the following section to add a code block into the email.
Add dynamic content to email messages (Dynamics 365 Marketing) | Microsoft Docs
Since this entity should be your custom one, I use the Lead entity as an example.
The code is something like:
Your leads:
It will get a list of the leads with their names and topics which belongs to each contact.
And you can apply the code to your entity ed_booking.