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}}
Unfortunately, it has not as I have to still find a way to filter the records without making any customization to the system.
Hi,
If the issue has been solved, it would be appreciated if you could click "Yes" to verify my answer.
If there is any further doubt, please do not hesitate to let me know.
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.
I'm not allowed to make field or form changes due to an ongoing larger project, any way to do in the code?
Hi,
You can create a calculated field in your entity to calculate today's date and then compare the two date field.
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.
André Arnaud de Cal...
292,162
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156