• hsd srh
  • NEWBIE
  • 0 Points
  • Member since 2021

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

Hi All,

Please take a look at below lines.

<messaging:emailTemplate subject="{!$Label.SNL_018_EmailSubject}"  recipientType="Contact" relatedToType="Account"  >
<messaging:htmlEmailBody >
{!relatedTo.Payment_Reminders1__r}



</messaging:htmlEmailBody>
</messaging:emailTemplate>

Here Payment_Reminders1 is child relationship name. From Account I am getting related reminder Id's in a list. How to get the recently created Id from that list. I tried sort by, order by and size etc., None are working. Please help me in this.