92
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
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
STATUS DETAILS
Completed

Administrator on 10/7/2022 7:55:20 PM
Thank you for your feedback!
"Conditional content" w/o needing HTML coding that allows multiple OR conditions is released as of Sep'2022 release. In a future release we will support more operators.
Please continue to proviude feedback so we can improve the feature further.
How to use conditional content (Dynamics 365 Marketing) | Microsoft Learn
Sincerely,
PM, Dynamics 365 Marketing