Skip to main content

Notifications

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}}

  • GRedhead Profile Picture
    GRedhead 270 on at
    RE: dynamic content to email messages

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

  • Nya Profile Picture
    Nya 29,058 on at
    RE: dynamic content to email messages

    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.

  • Suggested answer
    Nya Profile Picture
    Nya 29,058 on at
    RE: dynamic content to email messages

    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.

  • GRedhead Profile Picture
    GRedhead 270 on at
    RE: dynamic content to email messages

    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
    Nya 29,058 on at
    RE: dynamic content to email messages

    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

  • ElineB Profile Picture
    ElineB 272 on at
    RE: dynamic content to email messages

    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.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,162 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans