Hello,
Hi Ollee,
It is very glad that your problem has been solved.
Regards,
Clofly
Hi Clofly Mao,
thank you very much for your help and effort. It has helped us a lot.
Cheers!
Hi all,
the problem was that it is not possible to query values from lookup fields in the code tile. To circumvent this, we additionally store the eventId in a text field in the content settings. You also have to enclose your dynamic value in double braces with an apostrophe as shown below:
{{#if (eq this.msevtmgt_name '{{msdyncrm_contentsettings.pdg_eventid}}')}}
Regards,
Jan
Hi Clofly,
thanks for your help! We are trying out the solution, but are encountering problems when referencing the code with the dynamic values in the marketing email. The email can't be activated because an error is thrown: The dynamic content contains an invalid relation or attribute {{#if (eq this.msevtmgt_event msdyncrm_contentsettings.pdg_eventid)}} (translated from German).
{{#each contact.msevtmgt_sessionregistration_contact_msevtmgt_contactid}} {{#if (eq this.msevtmgt_event msdyncrm_contentsettings.pdg_eventid)}} Link zur Anmeldung {{/if}} {{/each}}
Above is the code we are using. We have activated auditing for the content settings entity and added syncing in the marketing data configuration. This has extended the options for adding dynamics values regarding the content settings entity. We are able to generate the dynamics value via the UI, resulting in the same expression you gave. Still, the error remains.
Regards,
Fabian
Hi Ollee,
As per my understanding, would you like to add a lookup field(source entity is Event) to a custom tile of customer journey, and the selected record could control content of marketing email?
If so, unfortunately properties of tile are not supported to be customized at present.
Besides Contact, Content settings is the only another entity to make email content display dynamically,
therefore, a workaround is that you could create a lookup field(Event-based) for Content settings entity,
apply different content settings to customer journey, then read the event id from current content setting, it will only show registration records which parent event equal to current event.
e.g:
{{#if (eq this.msevtmgt_event msdyncrm_contentsettings.pdg_associatedevent)}}
{{/if}}
By doing this, your customer would just need to change content setting of customer journey for different events.
Regards,
Clofly
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156