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

Notifications

Announcements

No record found.

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
    278 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…

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
Tom_Gioielli Profile Picture

Tom_Gioielli 81 Super User 2025 Season 2

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 49 Most Valuable Professional

#3
#ManoVerse Profile Picture

#ManoVerse 40

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans