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

Notifications

Announcements

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Pallavi Phade Profile Picture

Pallavi Phade 94

#2
Tom_Gioielli Profile Picture

Tom_Gioielli 69 Super User 2025 Season 2

#3
TAHER Mehdi Profile Picture

TAHER Mehdi 58

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans