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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 214 Super User 2026 Season 1

#2
CU11031447-0 Profile Picture

CU11031447-0 100

#3
NeerajPawar Profile Picture

NeerajPawar 76

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans