29
Currently it is not possible to use OR-Conditions or CONTAINS conditions in for dynamic content in the marketing email.

OR-Conditions-Use Case:
If you want to display content only to contacts from Germany, Austria, Switzerland you have to add three times the same content, for each an own if-condition. It would be great, if such a use case can be easier implemented (that was an easy case).

CONTAINS-Use Case:
Currently it is not possible to show dynamic content to multi-option-set values, only if it exactly matches the value and one is ticket. It would be great, therefore when a contains-syntax will be added, cause we do not have access to the custom helper in email source code.

https://docs.microsoft.com/en-us/dynamics365/marketing/dynamic-email-content#conditional-statements-and-comparisons

In Handlebars.js, there is no built-in "contains" helper, thus we need to create a custom one.

https://axiacore.com/blog/check-if-item-array-handlebars-547/

https://stackoverflow.com/questions/15497794/handlebars-if-value-contains-x



See the problem described in the forum: https://community.dynamics.com/365/marketing/f/dynamics-365-for-marketing-forum/395868/custom-code-in-marketing-email-for-multi-optionset/1069073#1069073
Category: Email Marketing
STATUS DETAILS
New