Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

dynamic content - Error with syntax

(0) ShareShare
ReportReport
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
    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,120 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans