Skip to main content

Notifications

Customer experience | Sales, Customer Insights,...
Suggested answer

dynamic content - Error with syntax

Posted on by
Hi,

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.
  • Suggested answer
    RudyZhang Profile Picture
    RudyZhang Microsoft Employee on at
    dynamic content - Error with syntax
    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

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.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,240 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans