You need to sign in to do that
Don't have an account?

PLEASE HELP!!!! Visual Force Email Template Attachment
Hi there,
From what i am reading, it is possible to send a pdf attachment in a visual force email template. But only if that attachment is created on the fly using merge fields.
Is it possible to attach a pdf file that is stored in the Notes & Attachments object, and have that attachment sent with the visual force email template?
You need to write custom code to do this.
All Answers
You need to write custom code to do this.
Thank you Sherod,
I had come accross that code in the documentation. But i kind of dismissed it because it is essentailly another direction completely. The reason i need to use an email template is because it is involved in a workflow rule.
If deploying an email with an email attachment is only possible with an apex coded email, then i guess that is what i will have to do. But before embarking on that journey and scrapping my existing visual force email template, i wanted to make sure that i absolutely have to.
It is just really frustrating and now i have to tell the client...
Thanks for your help Sherod. I literally was able to copy and paste your code to start testing.
So, is this NOT possible from a VF email template? I also wanted to do this and leverage a workflow rule.
Hi Reppin. What did you end up doing here? I'm in a simliar situation...
Thanks!
Please let me know if you find a way to attach files from "Notes and Attachment" with Visual-force template. With Approval e-mail request(which is a visual-force email template) approval like to see all the attachment(2-3 generally) supporting approval request. Let me know how is it possible to attach them from Notes and Attachment
I have the some problem, I need to create a template with attachment saved in "notes and attachment" of opportunity