Announcements
{{#if acting}} ... {{/if}}
You've encountered a common issue when transitioning from Outbound Marketing to Real-Time Journeys (CIJ/RTM) regarding custom Handlebars expressions in email HTML. While your code works in other platforms and potentially in OBM, RTM has stricter parsing and processing of Handlebars expressions, particularly around complex comparisons and lookups.
Here's a breakdown of the problem and potential solutions:
Understanding the Problem:
contact.xxx_subjectareaofinterest1id
) with string literals ('Acting and Drama'
) can cause parsing errors.if
and else if
statements with complex comparisons can be less tolerant.Solutions:
YOUR_ACTING_AND_DRAMA_GUID
and YOUR_CRIMINOLOGY_GUID
with the actual GUID values.
{{#if (eq contact.xxx_subjectareaofinterest1id.name 'Acting and Drama')}}
----content----
{{else if (eq contact.xxx_subjectareaofinterest1id.name 'Criminology')}}
----content----
{{/if}}
Key Recommendations:
By using GUID comparison or simplifying your Handlebars expressions, you should be able to make your custom code work in RTM. Remember to test thoroughly and consider the user experience.
André Arnaud de Cal...
293,354
Super User 2025 Season 1
Martin Dráb
232,498
Most Valuable Professional
nmaenpaa
101,158
Moderator