You need to sign in to do that
Don't have an account?
Julie Steinloski 5
automated email an attachment from related list on case
Hi ... We have customers who send documents for review using email-to-case. The documents come as email attachments which land on the case - attachment related list. We would like to send an automated email referencing the attached document using workflow rules. The workflow rule works with the exception of including the document in the reply. Here's what I'm using for my VF page, but it's not pulling the attachments
<messaging:emailTemplate subject="Testing Attachment Lists" recipientType="Contact" relatedToType="Case">
<messaging:plainTextEmailBody >
Thank you for your email regarding the attached document(s). We will review your document and reply shortly.
<apex:relatedList list="Attachments" />
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
<messaging:emailTemplate subject="Testing Attachment Lists" recipientType="Contact" relatedToType="Case">
<messaging:plainTextEmailBody >
Thank you for your email regarding the attached document(s). We will review your document and reply shortly.
<apex:relatedList list="Attachments" />
</messaging:plainTextEmailBody>
</messaging:emailTemplate>
You need to use Messaging.singleEmailMessage class with following values:
- Object record id
- Receipient Id
- Attachment Id
- Do you want to save email as history.
Below are the sample of above feature:Hope this will help.
Thanks,
Gaurav
Skype: gaurav62990