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
khillan bhardwajkhillan bhardwaj 

Adding Attachment file from Attachment object in the VF Email Template



    I am using Vf Email Template which is used by Workflow. In the template i need to send the Attachment file of Attachment of the relatedTo object.Is there is any way to do it please let me know.


I know this can be done by using Apex trigger.but i need to send email by workflow




Khillan Singh



Hi Khillan,


Please go through the following H&T post which talks about adding attachments from a case object on it a VF email template:



khillan bhardwajkhillan bhardwaj
this will add attachment of all the cases with in an account. but i
want have attachment record under Account record to be in attachment in
the email attachment
khillan singh
this cannot be achieved via Configuration (Workflows). You have to use Apex Triggers for this purpose but let us wait for more responses.



If I understand this correctly - you wish to add an Attachment which is already present in the Notes and Attachments section to your VF email template..


The following post talks about it:



jagdish satijagdish sati
Hi All,

Did anyone get answer for this question. I am facing the same problem.

I want to add an attachment into email template without any customization. I need it with the help of process builder or workflow.

Please help!