Forum Post: RE: How can i attach list of files in the email

  • Thread starter Thread starter Chandrasekhar Gontla
  • Start date Start date
Status
Not open for further replies.
C

Chandrasekhar Gontla

Guest
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

Continue reading...
 
Status
Not open for further replies.
Back
Top