You need to sign in to do that
Don't have an account?
Marianne 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>
</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 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.