I am using the following expression for dynamic content, wherein 'tema' is a multi-select optionset in the 'contact' table. It keeps throwing a syntax error. I dont understand where the issue lies:
Error message: Dynamic content contains a syntax error in or near the following code{{#if (contains contact.tema 999700009)}}
It worked perfectly ok when I chose another optionset 'city' (which was boolean) and used the the operator 'eq' for equals to. Example:
No error message: {{#if (eq contact.city 999700009)}}
Is there an issue with the operator I am using. For multiselect optionset I am using'contains' whereas for a normal optionset i used 'eq'. Is this wrong? How can this be fixed?
P.s: I am still using outbound marketing and have not moved over to RTM. I know there's a solution for this in RTM but this unfortunately cannot be duplicated in outbound.
Hi, We have analyzed the information you provided and according to the official documentation, conditional statements can only use the following operators /eq ne lt gt lte gte/, which may be the cause of your syntax error. Please refer to the official documentation in the link below. https://learn.microsoft.com/en-us/dynamics365/customer-insights/journeys/dynamic-email-content I hope my answer is helpful to you! If you have any other questions, please feel free to contact me. Best Regards, Rudy Zhang
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.