Hi Sudhakar,
In email template, it will talk about only one record.
If you want to loop through multiple records/related records, then use Reports.
-> Create a report of type HTML Template
Example:
Say, We have 2 objects called Groups and Locations. The below snippet is to fetch the list of locations thar are related to Group
<body>
{!#LOOP_BEGIN.all#2354836}
{!$ORG_LOCN.city}<br>
{!#LOOP_END.all}
</body>
-> Now, create a email template where configure above report.
-> In Template Helper, 'Reports' option will be there under 'Helpers' section. And select the report which is created above.
-> Use that token and create template.
Ex: {!#REPORT.20077#body}
Hope this helps.
Thanks and Regards,
Chandra.G
thanks,for reply
Can you please let me know how can i attach only related files (PDF).i.e when i have taken action on specific client then it will send mail to that client.in that mail i need to attach PDFs related to that client.But now it is attaching all clients files.
As shown Below SS for "template,test email" client we need to attach only 11 PDF,but now it is attaching all PDF.
And this is the mail user got
and the relation b/w client to attachments is "One Client to Many Attachments"
got solution,we need to use template text to get my requirement