I have a requirement and I appreciate your help on this.
We have a custom object, where users create records and upload spreadsheets in "Notes & Attachment" related list.
Our requirement is, we wanted to create a VF email template that adds the attachment (xls) of the record. This VF email template will be used in our standard Approval Process.
How do i go about?
Regards,
Satish
Best Answer
Messaging:attachment documentation should help you to form the attachment by yourself rather than asking user to fill in excel if data is derived from salesforce objects and fields
http://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_messaging_attachment.htm
https://www.salesforce.com/us/developer/docs/pages/Content/pages_compref_messaging_emailTemplate.htm
The code mentioned is as below
Lets say you want exact attachment that user has modified ,then consider sending as link
here is some example for same