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
Nick D'AddarioNick D'Addario 

Adding Attachments from Notes & Attachments section to Visualforce Email Template?

I'm looking to add all of existing attachments from the Notes & Attachments section on opportunities to a Visualforce email template. The Email is sent automatically (Process Builder) when an opportunity reaches a certain stage. I'd imagine that I'd need to use an apex class that creates the email itself, calls the template I've made, and appends the attachments to it. I would then use process builder and define the apex class as the the action instead of the email template. Has anyone had any success in doing this?
Best Answer chosen by Nick D'Addario
Rahul KumarRahul Kumar (Salesforce Developers) 
Hi Nick,

May I suggest you please refer the link from success community. Hope it will be helpful.

Thanks
Rahul Kumar