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

Conditional statements in email using fields from the Content Settings

(0) ShareShare
ReportReport
Posted on by 84

Hi all, hopefully somebody worked on a related issue before. I'm trying to set up conditional statement in an email to display dynamic content only if the field is not empty.

This is the code that I'm trying to use. However MSDN tells me that it contains a syntax error. I'm trying to populate values from a field that belongs to the Content Settings entity. Is it even possible?

If the URL field for Twitter is empty in the Content Settings I don't want to display the Twitter icon. That is the logic I'm trying to apply.

<p>
{{#if (eq msdyncrm_contentsettings.msdyncrm_twitterurl}} '')}}
Yes
{{/if}} </p>

I have the same question (0)
  • Suggested answer
    Vinayd-MSFT Profile Picture
    Microsoft Employee on at

    The syntax error is likely coming because of extra curly braces at the end of "twitterurl" - removing them should fix the issue:

    {{#if (eq msdyncrm_contentsettings.msdyncrm_twitterurl'')}}

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 197 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 70

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans