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

Sort with respect to date in Marketing email

(0) ShareShare
ReportReport
Posted on by

I need to sort the registrations data wrt date in marketing email. Below is the code that i am using now.

{{ #each contact.msevtmgt_sessionregistration_contact_msevtmgt_contactid }}
{{#if (eq this.msevtmgt_event '00000000-000-00-00-0')}}
{{/if}}
{{/each}}
How can i sort his dates according to time.Also what is the current criteria used to filter the 'for each loops' record fetched by dynamic content in marketing mail.Can we use any variable to store data in dynamic content ?
Thanks in advance. 
I have the same question (0)
  • cloflyMao Profile Picture
    25,210 on at

    Hi Commun,

    I created 3 event registration records for same contact and tested several times in preview mode.

    pastedimage1586325054184v1.png

    It seems that sorting is random(no criteria) in each time.

    pastedimage1586325152991v2.png

    pastedimage1586325197631v3.png

    Dynamic expression in marketing email is based on a javascript template library: Handlebarsjs.

    In pure HTML page, we could do sorting on output of 'for-each loop' by creating our own sorting function(a feature in the library),

    however, js will be blocked in HTML email by most email service providers due to security reason;

    Thus we couldn't use any variable to store data in dynamic content, or do sorting on output,

    in other word, there are limited expression options(may only examples in documentation) for us to add dynamic content in email content.

    Please suggest your requirement in Ideas forum to make it could be available in future version.

    Regards,

    Clofly

  • Suggested answer
    ShravanSuri Profile Picture
    1,255 on at

    Hey Commun,

    This is a functionality that we don't currently support - we've added it to our backlog for consideration.

    Thanks,

    Shravan

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 96 Super User 2025 Season 2

#2
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

#3
Gerardo Rentería García Profile Picture

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans