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

Announcements

Community site session details

Community site session details

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

dynamic content to email messages

(1) ShareShare
ReportReport
Posted on by 270

Hi all,

I would like to get some dynamic content into my email but need some help.

I want to go from my contact to my custom entity, and then filter each to show only the record where the move-in date field is equal to today, and get that records move-in date.

So far i have:


{{#each contact.contact.new_entity_new_moveindate }}

<-- I need to filter it here somehow to only show the record where the move in date is equal to today. -->


{{/each}}

I have the same question (0)
  • ElineB Profile Picture
    286 on at

    Hi,

    Your condition should be something like this:

    {{#each contact.contact.new_entity}}

    {{#if (eq this.new_moveindate 'date')}}

    {{this.new_moveindate}}

    {{/if}}

    {{/each}}

    I only don't know how to get the today's date.

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    You can create a calculated field in your entity to calculate today's date and then compare the two date field.

    pastedimage1638950889390v2.png

    pastedimage1638950911179v3.png

  • GRedhead Profile Picture
    270 on at

    I'm not allowed to make field or form changes due to an ongoing larger project, any way to do in the code?

  • Suggested answer
    Nya Profile Picture
    29,060 on at

    Hi,

    Unfortunately, the code block in marketing email does not support to get the current date.

    You can post your proposal in Ideas forum in order to drive it to be improved.

  • Nya Profile Picture
    29,060 on at

    Hi,

    If the issue has been solved, it would be appreciated if you could click "Yes" to verify my answer.

    Image

    If there is any further doubt, please do not hesitate to let me know.

  • GRedhead Profile Picture
    270 on at

    Unfortunately, it has not as I have to still find a way to filter the records without making any customization to the system.

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

Responsible AI policies

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

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Tom_Gioielli 53 Super User 2026 Season 1

#2
Eugen Podkorytov Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Eugen Podkorytov 49

#3
Fiona_Tiernan Profile Picture

Liquid error: Object of type 'Adxstudio.Xrm.Web.Mvc.Liquid.EntityReferenceDrop' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Liquid error: Object of type 'System.Boolean' cannot be converted to type 'System.String'. Fiona_Tiernan 22 Moderator

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans