function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Marianne KomeskiMarianne Komeski 

Attach 'Notes & Attachments' from custom object to visual force email template

I have a VF email template that I want to use for approval email alerts.  I want to have the attachments associated with the object being sent for approval attached to the email alert.  Thus far, i am only able to get the attachments to 'list' on a PDF versus attach.  The portion of the email alert is below pertaining to the attachments.  Am I missing a component that pulls the attachments as attachments or something else?  Any help is greatly appreciated as I've looked through help text and am unable to find solution that works.


</messaging:htmlEmailBody>  


<messaging:attachment renderAs="PDF" filename="CDR Approval.pdf">
<apex:repeat var="files" value="{!relatedTo.Attachments}">
{!files.name}
</apex:repeat>



</messaging:attachment>

</messaging:emailTemplate>

Ramesh VaratharajRamesh Varatharaj
did you find a solution - i saw some threads with solutions for the same topic. let me know if you still have not figured out.