web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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.
I have the same question (0)
  • Suggested answer
    RudyZhang Profile Picture
    Microsoft Employee on at
    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 214 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 76

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans